SF patch 473749 compile under OS/2 VA C++, from Michael Muller.

Changes enabling Python to compile under OS/2 Visual Age C++.
This commit is contained in:
Tim Peters 2001-11-05 02:45:59 +00:00
parent c44403995e
commit 603c6831d0
7 changed files with 68 additions and 36 deletions

View file

@ -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>