From d932a670ee66fd2c0768beb1b7b596803d9d03af Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 24 Nov 2008 09:36:13 +0000 Subject: [PATCH] include the right header for timeval git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gsocket.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/wx/gsocket.h b/include/wx/gsocket.h index cb34121e17..d674c3e361 100644 --- a/include/wx/gsocket.h +++ b/include/wx/gsocket.h @@ -37,7 +37,13 @@ class WXDLLIMPEXP_FWD_NET wxSocketBase; #include #endif -#include // for timeval +// include the header defining timeval: under Windows this struct is used only +// with sockets so we need to include winsock.h which we do via windows.h +#ifdef __WXMSW__ + #include "wx/msw/wrapwin.h" +#else + #include // for timeval +#endif enum GAddressType { -- 2.45.2