Add missing #ifdef to avoid build failure on system having neither sys/inotify.h
authorLennart Poettering <lennart@poettering.net>
Sat, 21 Apr 2007 18:51:49 +0000 (18:51 +0000)
committerLennart Poettering <lennart@poettering.net>
Sat, 21 Apr 2007 18:51:49 +0000 (18:51 +0000)
nor linux/inotify.h (Patch from Sven Wegener)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1452 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-daemon/main.c

index 0367b98..d994392 100644 (file)
 #include <sys/resource.h>
 #include <sys/socket.h>
 
+#ifdef HAVE_INOTIFY
 #ifdef HAVE_SYS_INOTIFY_H
 #include <sys/inotify.h>
 #else
 #include "inotify-nosys.h"
 #endif
+#endif
 
 #include <libdaemon/dfork.h>
 #include <libdaemon/dsignal.h>