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.
This commit is contained in:
Diego Elio 'Flameeyes' Pettenò 2009-11-20 21:25:33 +01:00
parent 09a58b6813
commit 4923f3ca77
2 changed files with 8 additions and 0 deletions

View file

@ -34,6 +34,10 @@
#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>