Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 26209:383587027c74 2.2
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)
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Thu, 14 Nov 2002 02:22:34 +0000 |
| parents | a77254cbd4f0 |
| children |
line wrap: on
line diff
--- a/Modules/socketmodule.c Wed Nov 13 19:06:00 2002 +0000 +++ b/Modules/socketmodule.c Thu Nov 14 02:22:34 2002 +0000 @@ -142,6 +142,11 @@ #include <netinet/tcp.h> #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 <net/netdb.h>
