]> git.saurik.com Git - wxWidgets.git/commitdiff
SOCKLEN_T handling for OSX - it seems to be defined as a size_t, when the parameters...
authorRyan Norton <wxprojects@comcast.net>
Thu, 23 Sep 2004 17:17:43 +0000 (17:17 +0000)
committerRyan Norton <wxprojects@comcast.net>
Thu, 23 Sep 2004 17:17:43 +0000 (17:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/gsocket.cpp

index 6aaa755cf977ad73afeb01ebc3fd6ce405b85039..3ea7d35fbd4b5d31b6ced37189bac5f4ea6dc065 100644 (file)
@@ -117,6 +117,12 @@ int _System soclose(int);
 #  endif
 #endif
 
+#else 
+   /* undefine for OSX - its really an int */
+#  ifdef __DARWIN__
+#    undef SOCKLEN_T
+#    define SOCKLEN_T int
+#  endif
 #endif /* SOCKLEN_T */
 
 /*
@@ -1406,7 +1412,7 @@ void GSocket::Detected_Write()
 
     m_establishing = false;
 
-    getsockopt(m_fd, SOL_SOCKET, SO_ERROR, (void*)&error, &len);
+    getsockopt(m_fd, SOL_SOCKET, SO_ERROR, (void*)&error, (int*) &len);
 
     if (error)
     {