]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
some fixes for AIX compilation
[wxWidgets.git] / src / common / socket.cpp
index 4f3b8085e5cda925c57a111978f9128c9fe0fe21..cf219b9ea01392045bded3dbcf3724b335d3f0b5 100644 (file)
@@ -544,9 +544,11 @@ void wxSocketBase::Discard()
 // switch lines below.
 
 #if wxHAVE_GLIBC2
 // switch lines below.
 
 #if wxHAVE_GLIBC2
-#   define wxSOCKET_INT socklen_t
+#   typedef socklen_t wxSOCKET_INT;
+#elif defined(__AIX__)
+#   typedef size_t wxSOCKET_INT;
 #else
 #else
-#   define wxSOCKET_INT int
+#   typedef int wxSOCKET_INT;
 #endif
 
 // --------------------------------------------------------------
 #endif
 
 // --------------------------------------------------------------