diff options
author | Volker Lendecke <vl@samba.org> | 2008-02-25 12:52:55 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-02-25 12:58:56 +0100 |
commit | 4a1a138b0fe0f2200e5a37a0609481e4340a896c (patch) | |
tree | baa810ea3259f953fabb8613b3cabe146e7b0c1a /source/smbd | |
parent | 9b761062df80c45bf2b76af071131d0c78e94a09 (diff) | |
download | samba-4a1a138b0fe0f2200e5a37a0609481e4340a896c.tar.gz samba-4a1a138b0fe0f2200e5a37a0609481e4340a896c.tar.xz samba-4a1a138b0fe0f2200e5a37a0609481e4340a896c.zip |
Fix inotify detection
Bug 5271 -- thanks to Tiziano Müller
Diffstat (limited to 'source/smbd')
-rw-r--r-- | source/smbd/notify_inotify.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/smbd/notify_inotify.c b/source/smbd/notify_inotify.c index 73cee440d48..fa0f0ed51dc 100644 --- a/source/smbd/notify_inotify.c +++ b/source/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 |