use struct timeval and not a long to store socket timeout under Unix too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-11-23 13:39:12 +00:00
parent ebf94940c4
commit 87c0312a66
3 changed files with 6 additions and 16 deletions

View File

@@ -37,6 +37,8 @@ class WXDLLIMPEXP_FWD_NET wxSocketBase;
#include <stdlib.h>
#endif
#include <time.h> // for timeval
enum GAddressType
{
GSOCK_NOFAMILY = 0,
@@ -215,11 +217,7 @@ public:
bool m_broadcast;
bool m_dobind;
#ifdef __WINDOWS__
struct timeval m_timeout;
#else
unsigned long m_timeout;
#endif
GSocketEventFlags m_detected;