diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-10-30 15:53:46 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-10-30 15:53:46 +1100 |
commit | b1b58a1dcff56665714d7b20c58ab166e26fd512 (patch) | |
tree | 30b6b9001944bc85e93d99296cf3baf7b6781a9f /source4/ntvfs/sysdep/config.m4 | |
parent | 031c5d2753281ac4e8ae2a46f4e1b4bf19d2fa70 (diff) | |
download | samba-b1b58a1dcff56665714d7b20c58ab166e26fd512.tar.gz samba-b1b58a1dcff56665714d7b20c58ab166e26fd512.tar.bz2 samba-b1b58a1dcff56665714d7b20c58ab166e26fd512.zip |
use glibc sys/inotify.h header
when we first added the inotify code glibc didn't have the inotify
functions yet. Now that it does we can use the official header and
avoid the asm/unistd.h syscall workaround
Diffstat (limited to 'source4/ntvfs/sysdep/config.m4')
-rw-r--r-- | source4/ntvfs/sysdep/config.m4 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/ntvfs/sysdep/config.m4 b/source4/ntvfs/sysdep/config.m4 index 6de75a4294..f54f65d08d 100644 --- a/source4/ntvfs/sysdep/config.m4 +++ b/source4/ntvfs/sysdep/config.m4 @@ -1,9 +1,13 @@ -AC_CHECK_HEADERS(linux/inotify.h asm/unistd.h) +AC_CHECK_HEADERS(linux/inotify.h asm/unistd.h sys/inotify.h) AC_CHECK_FUNC(inotify_init) AC_HAVE_DECL(__NR_inotify_init, [#include <asm/unistd.h>]) SMB_ENABLE(sys_notify_inotify, NO) +if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_sys_inotify_h" = x"yes"; then + SMB_ENABLE(sys_notify_inotify, YES) +fi + 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 |