]> granicus.if.org Git - python/commitdiff
OS/2 EMX needs addrinfo.h for code included from getaddrinfo.c
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Wed, 7 Jul 2004 14:02:59 +0000 (14:02 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Wed, 7 Jul 2004 14:02:59 +0000 (14:02 +0000)
Modules/socketmodule.c

index 46015f16cd47bb8a671ace7cbb05a7e965621fd8..6e2166cd71e217f9dc5f70dac3c2e73b42c73b6e 100644 (file)
@@ -279,6 +279,10 @@ int h_errno; /* not used */
 #include "addrinfo.h"
 #endif
 
+#if defined(PYOS_OS2) && defined(PYCC_GCC)
+#include "addrinfo.h"
+#endif
+
 #ifndef HAVE_INET_PTON
 int inet_pton(int af, const char *src, void *dst);
 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);