Include sys/filio.h if present; this makes use of FIONREAD on Solaris.
authorDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
Fri, 20 Nov 2009 20:25:33 +0000 (21:25 +0100)
committerDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
Fri, 20 Nov 2009 20:25:33 +0000 (21:25 +0100)
FIONREAD on OpenSolaris is declared in sys/filio.h. The RTP modules already
rely on the presence of FIONREAD, and check for the header, so this brings
the pipe source and sink modules on par with them.

src/modules/module-pipe-sink.c
src/modules/module-pipe-source.c

index f06d1ee..7a4e730 100644 (file)
 #include <sys/ioctl.h>
 #include <poll.h>
 
+#ifdef HAVE_SYS_FILIO_H
+#include <sys/filio.h>
+#endif
+
 #include <pulse/xmalloc.h>
 
 #include <pulsecore/core-error.h>
index c5eba43..933f029 100644 (file)
 #include <sys/ioctl.h>
 #include <sys/poll.h>
 
+#ifdef HAVE_SYS_FILIO_H
+#include <sys/filio.h>
+#endif
+
 #include <pulse/xmalloc.h>
 
 #include <pulsecore/core-error.h>