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

Trent Lloyd lathiat at bur.st
Tue Mar 31 21:34:55 PDT 2015


Hi Sebastian,

Thanks for your report.  I have committed a slightly modified version of your patch using the existing HAVE_SYS_FILIO_H conditional from configure.

https://github.com/lathiat/avahi/commit/90604e89faf926b16f7edc93b854070c1d6022d4 <https://github.com/lathiat/avahi/commit/90604e89faf926b16f7edc93b854070c1d6022d4>

Cheers,
Trent

> On 8 Jan 2015, at 1:15 am, Sebastian Wiedenroth <wiedi at frubar.net> wrote:
> 
> 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>
> +#endif
> #include <sys/ioctl.h>
> #include <stdio.h>
> #include <fcntl.h>
> -- 
> 1.9.3 (Apple Git-50)
> 
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/avahi/attachments/20150401/48c0d8a3/attachment.html>


More information about the avahi mailing list