summaryrefslogtreecommitdiff
path: root/source3/smbd/notify_inotify.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-02-25 12:52:55 +0100
committerVolker Lendecke <vl@samba.org>2008-02-25 12:58:56 +0100
commit43491db17c8f0b62f5bfdcb68a92feef651ed5d4 (patch)
tree16ed81c59f073997c23744c47d8e0497cd9bba99 /source3/smbd/notify_inotify.c
parent1f635e3888d51641a414f84f7402f249de287a74 (diff)
downloadsamba-43491db17c8f0b62f5bfdcb68a92feef651ed5d4.tar.gz
samba-43491db17c8f0b62f5bfdcb68a92feef651ed5d4.tar.bz2
samba-43491db17c8f0b62f5bfdcb68a92feef651ed5d4.zip
Fix inotify detection
Bug 5271 -- thanks to Tiziano Müller (This used to be commit 4a1a138b0fe0f2200e5a37a0609481e4340a896c)
Diffstat (limited to 'source3/smbd/notify_inotify.c')
-rw-r--r--source3/smbd/notify_inotify.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/smbd/notify_inotify.c b/source3/smbd/notify_inotify.c
index 73cee440d4..fa0f0ed51d 100644
--- a/source3/smbd/notify_inotify.c
+++ b/source3/smbd/notify_inotify.c
@@ -29,10 +29,12 @@
#include <asm/types.h>
#endif
+#ifndef HAVE_INOTIFY_INIT
+
#include <linux/inotify.h>
#include <asm/unistd.h>
-#ifndef HAVE_INOTIFY_INIT
+
/*
glibc doesn't define these functions yet (as of March 2006)
*/
@@ -50,6 +52,10 @@ static int inotify_rm_watch(int fd, int wd)
{
return syscall(__NR_inotify_rm_watch, fd, wd);
}
+#else
+
+#include <sys/inotify.h>
+
#endif