[avahi] [PATCH] Newer SmartOS has inotify and the inotify code needs FIONREAD

Sebastian Wiedenroth wiedi at frubar.net
Wed Jan 7 09:15:10 PST 2015

Newer SmartOS has support for inotify which the configure script detects.
The avahi inotify code needs FIONREAD which is defined in sys/filio.h on illumos.
This patch adds the include and fixes the build.
avahi-daemon/main.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/avahi-daemon/main.c b/avahi-daemon/main.c
index 8c28fd6..ee12045 100644
--- a/avahi-daemon/main.c
+++ b/avahi-daemon/main.c
@@ -31,6 +31,9 @@
#include <grp.h>
#include <pwd.h>
#include <sys/stat.h>
+#if defined(__sun)
+#include <sys/filio.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <fcntl.h>
1.9.3 (Apple Git-50)

More information about the avahi mailing list