File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,10 +61,6 @@ Local naming conventions:
6161
6262*/
6363
64- #if defined(__sgi ) && _COMPILER_VERSION > 700 && !_SGIAPI
65- #define _BSD_TYPES
66- #endif
67-
6864#include "Python.h"
6965
7066#undef MAX
@@ -196,18 +192,8 @@ shutdown(how) -- shut down traffic in one or both directions\n\
196192
197193/* XXX Using _SGIAPI is the wrong thing,
198194 but I don't know what the right thing is. */
199- #undef _SGIAPI /* to avoid warning */
200195#define _SGIAPI 1
201196
202- #undef _XOPEN_SOURCE
203- #include <sys/socket.h>
204- #include <sys/types.h>
205- #include <netinet/in.h>
206- #ifdef _SS_ALIGNSIZE
207- #define HAVE_GETADDRINFO 1
208- #define HAVE_GETNAMEINFO 1
209- #endif
210-
211197#define HAVE_INET_PTON
212198#include <netdb.h>
213199#endif
@@ -271,24 +257,7 @@ int h_errno; /* not used */
271257# define O_NONBLOCK O_NDELAY
272258#endif
273259
274- #if defined(__sgi ) && _COMPILER_VERSION > 700 \
275- && !defined(_SS_ALIGNSIZE ) /* defined in sys/socket.h */
276- /* by some newer versions of IRIX */
277- /* (e.g. not by 6.5.10 but by 6.5.21) */
278- #include "addrinfo.h"
279- #endif
280-
281- #if defined(PYOS_OS2 ) && defined(PYCC_GCC )
282- #include "addrinfo.h"
283- #endif
284-
285- #if defined(_MSC_VER ) && _MSC_VER == 1200
286260#include "addrinfo.h"
287- #endif
288-
289- #if defined(__CYGWIN__ )
290- #include "addrinfo.h"
291- #endif
292261
293262#ifndef HAVE_INET_PTON
294263int inet_pton (int af , const char * src , void * dst );
You can’t perform that action at this time.
0 commit comments