diff options
author | Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2009-11-20 21:25:33 +0100 |
---|---|---|
committer | Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2009-11-20 21:25:33 +0100 |
commit | 4923f3ca773662b2d147bc374995571b5dacdc7f (patch) | |
tree | 46ca5c9aef8edab8d225c9f00cea1af1c23fc398 /src/modules/module-pipe-sink.c | |
parent | 09a58b6813c078a64cf61be4d2ba98e26b4c88b3 (diff) |
Include sys/filio.h if present; this makes use of FIONREAD on Solaris.
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.
Diffstat (limited to 'src/modules/module-pipe-sink.c')
-rw-r--r-- | src/modules/module-pipe-sink.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/module-pipe-sink.c b/src/modules/module-pipe-sink.c index f06d1ee6..7a4e730f 100644 --- a/src/modules/module-pipe-sink.c +++ b/src/modules/module-pipe-sink.c @@ -34,6 +34,10 @@ #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> |