summaryrefslogtreecommitdiff
path: root/source4/ntvfs/sysdep/inotify.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-10-30 15:53:46 +1100
committerAndrew Tridgell <tridge@samba.org>2008-10-30 15:53:46 +1100
commitb1b58a1dcff56665714d7b20c58ab166e26fd512 (patch)
tree30b6b9001944bc85e93d99296cf3baf7b6781a9f /source4/ntvfs/sysdep/inotify.c
parent031c5d2753281ac4e8ae2a46f4e1b4bf19d2fa70 (diff)
downloadsamba-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/inotify.c')
-rw-r--r--source4/ntvfs/sysdep/inotify.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/ntvfs/sysdep/inotify.c b/source4/ntvfs/sysdep/inotify.c
index e4e7c44686..68653d60bd 100644
--- a/source4/ntvfs/sysdep/inotify.c
+++ b/source4/ntvfs/sysdep/inotify.c
@@ -29,6 +29,10 @@
#include "libcli/raw/smb.h"
#include "param/param.h"
+#if HAVE_SYS_INOTIFY_H
+#include <sys/inotify.h>
+#else
+/* for older glibc varients - we can remove this eventually */
#include <linux/inotify.h>
#include <asm/unistd.h>
@@ -51,6 +55,7 @@ static int inotify_rm_watch(int fd, int wd)
return syscall(__NR_inotify_rm_watch, fd, wd);
}
#endif
+#endif
/* older glibc headers don't have these defines either */