mirror of
https://github.com/python/cpython.git
synced 2025-10-15 03:10:29 +00:00
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:
parent
c44403995e
commit
603c6831d0
7 changed files with 68 additions and 36 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue