summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2006-04-10 12:15:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:01 -0500
commitbfa8d649096c417fd67fcdeaf899c1fab4bcda3e (patch)
treeb9af5ecd653dcb3626bbdc2270011893845542db /source4/ntvfs
parent7f6ed60c70c25d7938ae5eca7e5a575298c5e670 (diff)
downloadsamba-bfa8d649096c417fd67fcdeaf899c1fab4bcda3e.tar.gz
samba-bfa8d649096c417fd67fcdeaf899c1fab4bcda3e.tar.bz2
samba-bfa8d649096c417fd67fcdeaf899c1fab4bcda3e.zip
r15017: When making up our own inotify functions, make sure glibc exports the
__NR_inotify_* syscall numbers before trying. (This used to be commit 5e79adda7c7e00c194efd1a5e57671f7bd34fe50)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/sysdep/config.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/ntvfs/sysdep/config.m4 b/source4/ntvfs/sysdep/config.m4
index 372e6b5bd5..46787f9f0f 100644
--- a/source4/ntvfs/sysdep/config.m4
+++ b/source4/ntvfs/sysdep/config.m4
@@ -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