From 74d3098357674e6332bb34cf046e2c21d0c42df1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 21 Sep 2010 11:56:53 +0000 Subject: [PATCH] Compilation fix of wxSocket code for older Solaris versions. Include sys/filio.h to define FIONBIO in all cases (sometimes this header is already included from sys/ioctl.h but not always). Closes #12481. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/unix/private/sockunix.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/wx/unix/private/sockunix.h b/include/wx/unix/private/sockunix.h index 63fc0d885d..ea3006215f 100644 --- a/include/wx/unix/private/sockunix.h +++ b/include/wx/unix/private/sockunix.h @@ -14,6 +14,14 @@ #include #include + +// Under older (Open)Solaris versions FIONBIO is declared in this header only. +// In the newer versions it's included by sys/ioctl.h but it's simpler to just +// include it always instead of testing for whether it is or not. +#ifdef __SOLARIS__ + #include +#endif + #include "wx/private/fdiomanager.h" class wxSocketImplUnix : public wxSocketImpl, -- 2.45.2