summaryrefslogtreecommitdiff
path: root/source4/ntvfs/sysdep
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-04-11 01:19:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:02 -0500
commit3979da11a4685a029bf5b7cbc8ec0c4216e8cf08 (patch)
treef891ab70f89944ed1fbdb75b10fa58f4e5773b4a /source4/ntvfs/sysdep
parent0240d4a8753b599b35766a5df0b70ab94e053257 (diff)
downloadsamba-3979da11a4685a029bf5b7cbc8ec0c4216e8cf08.tar.gz
samba-3979da11a4685a029bf5b7cbc8ec0c4216e8cf08.tar.bz2
samba-3979da11a4685a029bf5b7cbc8ec0c4216e8cf08.zip
r15029: fixed the detection of inotify
(This used to be commit 5471b4b1a812dad3c97c97b938bd2dc41ae32420)
Diffstat (limited to 'source4/ntvfs/sysdep')
-rw-r--r--source4/ntvfs/sysdep/config.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ntvfs/sysdep/config.m4 b/source4/ntvfs/sysdep/config.m4
index 46787f9f0f..f70cac5e64 100644
--- a/source4/ntvfs/sysdep/config.m4
+++ b/source4/ntvfs/sysdep/config.m4
@@ -1,6 +1,6 @@
AC_CHECK_HEADERS(linux/inotify.h asm/unistd.h)
AC_CHECK_FUNC(inotify_init)
-AC_CHECK_DECL(__NR_inotify_init)
+AC_HAVE_DECL(__NR_inotify_init, [#include <asm/unistd.h>])
SMB_ENABLE(sys_notify_inotify, NO)
@@ -8,6 +8,6 @@ if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_linux_inotify_h"
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
+if test x"$ac_cv_header_linux_inotify_h" = x"yes" -a x"$ac_cv_have___NR_inotify_init_decl" = x"yes"; then
SMB_ENABLE(sys_notify_inotify, YES)
fi