summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-11-05 02:45:59 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-11-05 02:45:59 (GMT)
commit603c6831d08d8598f76e767acdd6d37227b3e9ec (patch)
tree81814cbe1ce174dfa90f5ed0177a55f570202d7f /Modules
parentc44403995e6fd1a55b39ca86ceb71955cbbf5e25 (diff)
downloadcpython-603c6831d08d8598f76e767acdd6d37227b3e9ec.zip
cpython-603c6831d08d8598f76e767acdd6d37227b3e9ec.tar.gz
cpython-603c6831d08d8598f76e767acdd6d37227b3e9ec.tar.bz2
SF patch 473749 compile under OS/2 VA C++, from Michael Muller.
Changes enabling Python to compile under OS/2 Visual Age C++.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 1ecb281..fea6b85 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -142,13 +142,16 @@ Socket methods:
#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>