diff Modules/socketmodule.c @ 20871:f576ffd57966 legacy-trunk

SF patch 473749 compile under OS/2 VA C++, from Michael Muller. Changes enabling Python to compile under OS/2 Visual Age C++.
author Tim Peters <tim.peters@gmail.com>
date Mon, 05 Nov 2001 02:45:59 +0000
parents 77bb2ae067c2
children 06d95b6877c4
line wrap: on
line diff
--- a/Modules/socketmodule.c	Mon Nov 05 01:55:43 2001 +0000
+++ b/Modules/socketmodule.c	Mon Nov 05 02:45:59 2001 +0000
@@ -142,13 +142,16 @@
 #include <netdb.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
-#if !(defined(__BEOS__) || defined(__CYGWIN__))
+#if !(defined(__BEOS__) || defined(__CYGWIN__) || (defined(PYOS_OS2) && defined(PYCC_VACPP)))
 #include <netinet/tcp.h>
 #endif
 
 /* Headers needed for inet_ntoa() and inet_addr() */
 #ifdef __BEOS__
 #include <net/netdb.h>
+#elif defined(PYOS_OS2) && defined(PYCC_VACPP)
+#include <netdb.h>
+typedef size_t socklen_t;
 #else
 #ifndef USE_GUSI1
 #include <arpa/inet.h>