Author: tpot Date: 2006-04-10 12:15:40 +0000 (Mon, 10 Apr 2006) New Revision: 15017
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15017 Log: When making up our own inotify functions, make sure glibc exports the __NR_inotify_* syscall numbers before trying. Modified: branches/SAMBA_4_0/source/ntvfs/sysdep/config.m4 Changeset: Modified: branches/SAMBA_4_0/source/ntvfs/sysdep/config.m4 =================================================================== --- branches/SAMBA_4_0/source/ntvfs/sysdep/config.m4 2006-04-10 06:06:26 UTC (rev 15016) +++ branches/SAMBA_4_0/source/ntvfs/sysdep/config.m4 2006-04-10 12:15:40 UTC (rev 15017) @@ -1,7 +1,13 @@ AC_CHECK_HEADERS(linux/inotify.h asm/unistd.h) AC_CHECK_FUNC(inotify_init) +AC_CHECK_DECL(__NR_inotify_init) SMB_ENABLE(sys_notify_inotify, NO) -if test x"$ac_cv_header_linux_inotify_h" = x"yes"; then + +if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_linux_inotify_h" = x"yes"; then SMB_ENABLE(sys_notify_inotify, YES) fi + +if test x"$ac_cv_header_linux_inotify_h" = x"yes" -a x"$ac_cv_have_decl___NR_inotify_init"; then + SMB_ENABLE(sys_notify_inotify, YES) +fi