summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2004-07-07 14:02:59 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2004-07-07 14:02:59 (GMT)
commit5a8b4593d3d426ef58109a6d1cdb208917128b50 (patch)
tree3b612a7f979bd99af0748e3edd92dd9c3a644600 /Modules
parent378d3c0e5183aa2c06786bc03a46350a07ff13cc (diff)
downloadcpython-5a8b4593d3d426ef58109a6d1cdb208917128b50.zip
cpython-5a8b4593d3d426ef58109a6d1cdb208917128b50.tar.gz
cpython-5a8b4593d3d426ef58109a6d1cdb208917128b50.tar.bz2
OS/2 EMX needs addrinfo.h for code included from getaddrinfo.c
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 46015f1..6e2166c 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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);