From 5a8b4593d3d426ef58109a6d1cdb208917128b50 Mon Sep 17 00:00:00 2001 From: Andrew MacIntyre Date: Wed, 7 Jul 2004 14:02:59 +0000 Subject: OS/2 EMX needs addrinfo.h for code included from getaddrinfo.c --- Modules/socketmodule.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v0.12