@@ -190,7 +190,7 @@ shutdown(how) -- shut down traffic in one or both directions\n\
190190#ifdef HAVE_GETHOSTBYNAME_R
191191# if defined(_AIX ) && !defined(_LINUX_SOURCE_COMPAT )
192192# define HAVE_GETHOSTBYNAME_R_3_ARG
193- # elif defined(__sun ) || defined( __sgi )
193+ # elif defined(__sun )
194194# define HAVE_GETHOSTBYNAME_R_5_ARG
195195# elif defined(__linux__ )
196196/* Rely on the configure script */
@@ -216,29 +216,6 @@ shutdown(how) -- shut down traffic in one or both directions\n\
216216# include <netbt/sco.h>
217217#endif
218218
219- #if defined(__sgi ) && _COMPILER_VERSION > 700 && !_SGIAPI
220- /* make sure that the reentrant (gethostbyaddr_r etc)
221- functions are declared correctly if compiling with
222- MIPSPro 7.x in ANSI C mode (default) */
223-
224- /* XXX Using _SGIAPI is the wrong thing,
225- but I don't know what the right thing is. */
226- #undef _SGIAPI /* to avoid warning */
227- #define _SGIAPI 1
228-
229- #undef _XOPEN_SOURCE
230- #include <sys/socket.h>
231- #include <sys/types.h>
232- #include <netinet/in.h>
233- #ifdef _SS_ALIGNSIZE
234- #define HAVE_GETADDRINFO 1
235- #define HAVE_GETNAMEINFO 1
236- #endif
237-
238- #define HAVE_INET_PTON
239- #include <netdb.h>
240- #endif // __sgi
241-
242219/* Solaris fails to define this variable at all. */
243220#if (defined(__sun ) && defined(__SVR4 )) && !defined(INET_ADDRSTRLEN )
244221#define INET_ADDRSTRLEN 16
@@ -418,16 +395,10 @@ remove_unusable_flags(PyObject *m)
418395#endif
419396
420397/* include Python's addrinfo.h unless it causes trouble */
421- #if defined(__sgi ) && _COMPILER_VERSION > 700 && defined(_SS_ALIGNSIZE )
422- /* Do not include addinfo.h on some newer IRIX versions.
423- * _SS_ALIGNSIZE is defined in sys/socket.h by 6.5.21,
424- * for example, but not by 6.5.10.
425- */
426- #elif defined(_MSC_VER ) && _MSC_VER > 1201
427- /* Do not include addrinfo.h for MSVC7 or greater. 'addrinfo' and
428- * EAI_* constants are defined in (the already included) ws2tcpip.h.
429- */
430- #else
398+ /* Do not include addrinfo.h for MSVC. 'addrinfo' and
399+ * EAI_* constants are defined in (the already included) ws2tcpip.h.
400+ */
401+ #if !defined(_MSC_VER )
431402# include "addrinfo.h"
432403#endif
433404
0 commit comments