]> git.saurik.com Git - wxWidgets.git/commitdiff
include the right header for timeval
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 24 Nov 2008 09:36:13 +0000 (09:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 24 Nov 2008 09:36:13 +0000 (09:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gsocket.h

index cb34121e1731a7fe91e9bd037b3eca69a4088076..d674c3e3617f8d05e84db630c5505d44cad52295 100644 (file)
@@ -37,7 +37,13 @@ class WXDLLIMPEXP_FWD_NET wxSocketBase;
 #include <stdlib.h>
 #endif
 
 #include <stdlib.h>
 #endif
 
-#include <time.h>       // 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 <sys/time.h>   // for timeval
+#endif
 
 enum GAddressType
 {
 
 enum GAddressType
 {