From: Neal Norwitz Date: Thu, 14 Nov 2002 02:22:34 +0000 (+0000) Subject: Fix SF # 505427, socket module fails to build on HPUX10 X-Git-Tag: v2.2.3c1~229 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=116a5c43a3f1a8de44543147e5df49d42314115b;p=thirdparty%2FPython%2Fcpython.git Fix SF # 505427, socket module fails to build on HPUX10 h_errno is not defined on HPUX with the 2.2 build env't (ie, _XOPEN_SOURCE_EXTENDED is not defined) --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index a7b5a5222af3..1e31fb5ac2f6 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -142,6 +142,11 @@ Socket methods: #include #endif +/* This declaration is required for HPUX 10 */ +#if defined(__hpux) && !defined(h_errno) +extern int h_errno; +#endif + /* Headers needed for inet_ntoa() and inet_addr() */ #ifdef __BEOS__ #include