diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-10-30 12:30:04 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-10-30 12:30:04 -0700 |
commit | a9fed0955c5e332120fc6f778065551f7dd7ea86 (patch) | |
tree | c6ec190faa86348260139c03625520e1067b4bec /source3/smbd | |
parent | 2fce8d83c4f58c9f2214777a3583955682445eff (diff) | |
download | samba-a9fed0955c5e332120fc6f778065551f7dd7ea86.tar.gz samba-a9fed0955c5e332120fc6f778065551f7dd7ea86.tar.bz2 samba-a9fed0955c5e332120fc6f778065551f7dd7ea86.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 'source3/smbd')
-rw-r--r-- | source3/smbd/notify_inotify.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/smbd/notify_inotify.c b/source3/smbd/notify_inotify.c index c6c12a9cd2..8237e4ab0b 100644 --- a/source3/smbd/notify_inotify.c +++ b/source3/smbd/notify_inotify.c @@ -25,6 +25,10 @@ #ifdef HAVE_INOTIFY +#if HAVE_SYS_INOTIFY_H +#include <sys/inotify.h> +#else + #ifdef HAVE_ASM_TYPES_H #include <asm/types.h> #endif @@ -57,7 +61,7 @@ static int inotify_rm_watch(int fd, int wd) #include <sys/inotify.h> #endif - +#endif /* older glibc headers don't have these defines either */ #ifndef IN_ONLYDIR |