portability fix for FIONREAD on Solaris

This commit is contained in:
Carl Lei 2016-06-25 18:44:06 +08:00 committed by Lei Siao
parent ba6b3e2923
commit 6d71b73063
1 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,13 @@
#include <sys/ioctl.h>
#include <sys/uio.h>
/**
* FIONREAD on Solaris is defined elsewhere
*/
#ifdef __sun
#include <sys/filio.h>
#endif
/**
* Set up namespace
*/