Solaris build fix for GIO

Solaris/OpenSolaris/OpenIndiana define FIONREAD in sys/filio.h.
This commit adds a configure check for this header, and includes
it conditionally in gio/gsocket.c.

Patch by Fabian Groffen, bug 675524.
This commit is contained in:
Matthias Clasen
2012-08-06 11:55:59 -04:00
parent bd883f8dc7
commit cc80ae321f
2 changed files with 5 additions and 1 deletions

View File

@@ -44,6 +44,10 @@
# include <sys/ioctl.h>
#endif
#ifdef HAVE_SYS_FILIO_H
# include <sys/filio.h>
#endif
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif