From: Andrew MacIntyre Date: Wed, 7 Jul 2004 14:02:59 +0000 (+0000) Subject: OS/2 EMX needs addrinfo.h for code included from getaddrinfo.c X-Git-Tag: v2.4a1~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a8b4593d3d426ef58109a6d1cdb208917128b50;p=thirdparty%2FPython%2Fcpython.git OS/2 EMX needs addrinfo.h for code included from getaddrinfo.c --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 46015f16cd47..6e2166cd71e2 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);