]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fixes
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Jul 2004 17:26:13 +0000 (17:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Jul 2004 17:26:13 +0000 (17:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/unix/gsockunx.h
src/unix/gsocket.c

index 2eba13f4ef3f61e033bd317bc1d8c9216553b76e..fd96f7d08e5fbfeecb952125f8f54e89487bedb2 100644 (file)
@@ -96,6 +96,7 @@ struct _GSocket
   int m_stream;
   int m_oriented;
   int m_establishing;
+  int m_reusable;
   unsigned long m_timeout;
 
   /* Callbacks */
index 6de6e941a81a7edb03f79a9cb6e4bc89f6590883..3f1b7f4edd808680c315c9c9998a599059f8c501 100644 (file)
@@ -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,