summaryrefslogtreecommitdiff
path: root/source4/ntvfs/sysdep/inotify.c
diff options
context:
space:
mode:
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 */