From bb0926cc0097e5b15c0b93dc01c25cb827b96c19 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 25 Jul 2004 17:26:13 +0000 Subject: [PATCH] compilation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/unix/gsockunx.h | 1 + src/unix/gsocket.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/wx/unix/gsockunx.h b/include/wx/unix/gsockunx.h index 2eba13f4ef..fd96f7d08e 100644 --- a/include/wx/unix/gsockunx.h +++ b/include/wx/unix/gsockunx.h @@ -96,6 +96,7 @@ struct _GSocket int m_stream; int m_oriented; int m_establishing; + int m_reusable; unsigned long m_timeout; /* Callbacks */ diff --git a/src/unix/gsocket.c b/src/unix/gsocket.c index 6de6e941a8..3f1b7f4edd 100644 --- a/src/unix/gsocket.c +++ b/src/unix/gsocket.c @@ -487,7 +487,7 @@ GSocketError GSocket_SetServer(GSocket *sck) state after being previously closed. */ 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, * retrieve the actual address bound,