mirror of
https://github.com/python/cpython.git
synced 2025-12-11 03:20:01 +00:00
Get socketmodule compiling on IRIX 6.5.10.
I don't think the fix here is very good, but I'm not sure what would be better. In particular, we should not be defining _SGIAPI, but lots of things break if we remove it.
This commit is contained in:
parent
7f7e1371eb
commit
fb509a36c8
1 changed files with 11 additions and 2 deletions
|
|
@ -189,8 +189,17 @@ shutdown(how) -- shut down traffic in one or both directions\n\
|
||||||
/* make sure that the reentrant (gethostbyaddr_r etc)
|
/* make sure that the reentrant (gethostbyaddr_r etc)
|
||||||
functions are declared correctly if compiling with
|
functions are declared correctly if compiling with
|
||||||
MIPSPro 7.x in ANSI C mode (default) */
|
MIPSPro 7.x in ANSI C mode (default) */
|
||||||
|
|
||||||
|
/* XXX Using _SGIAPI is the wrong thing,
|
||||||
|
but I don't know what the right thing is. */
|
||||||
#define _SGIAPI 1
|
#define _SGIAPI 1
|
||||||
#include "netdb.h"
|
|
||||||
|
#ifndef ENABLE_IPV6
|
||||||
|
#define INET_ADDRSTRLEN 16
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define HAVE_INET_PTON
|
||||||
|
#include <netdb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Generic includes */
|
/* Generic includes */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue