compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -96,6 +96,7 @@ struct _GSocket
|
|||||||
int m_stream;
|
int m_stream;
|
||||||
int m_oriented;
|
int m_oriented;
|
||||||
int m_establishing;
|
int m_establishing;
|
||||||
|
int m_reusable;
|
||||||
unsigned long m_timeout;
|
unsigned long m_timeout;
|
||||||
|
|
||||||
/* Callbacks */
|
/* Callbacks */
|
||||||
|
@@ -487,7 +487,7 @@ GSocketError GSocket_SetServer(GSocket *sck)
|
|||||||
state after being previously closed.
|
state after being previously closed.
|
||||||
*/
|
*/
|
||||||
if (sck->m_reusable)
|
if (sck->m_reusable)
|
||||||
setsockopt(socket->m_fd, SOL_SOCKET, SO_REUSEADDR, (const char*)&arg, sizeof(u_long));
|
setsockopt(sck->m_fd, SOL_SOCKET, SO_REUSEADDR, (const char*)&arg, sizeof(u_long));
|
||||||
|
|
||||||
/* Bind to the local address,
|
/* Bind to the local address,
|
||||||
* retrieve the actual address bound,
|
* retrieve the actual address bound,
|
||||||
|
Reference in New Issue
Block a user