From 43491db17c8f0b62f5bfdcb68a92feef651ed5d4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 25 Feb 2008 12:52:55 +0100 Subject: Fix inotify detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug 5271 -- thanks to Tiziano Müller (This used to be commit 4a1a138b0fe0f2200e5a37a0609481e4340a896c) --- source3/smbd/notify_inotify.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source3/smbd/notify_inotify.c') 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 #endif +#ifndef HAVE_INOTIFY_INIT + #include #include -#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 + #endif -- cgit