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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user