Commit fb509a36 authored by Jeremy Hylton's avatar Jeremy Hylton

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.
parent 7f7e1371
...@@ -185,12 +185,21 @@ shutdown(how) -- shut down traffic in one or both directions\n\ ...@@ -185,12 +185,21 @@ shutdown(how) -- shut down traffic in one or both directions\n\
# include <os2.h> # include <os2.h>
#endif #endif
#if defined(__sgi)&&_COMPILER_VERSION>700 && !_SGIAPI #if defined(__sgi) && _COMPILER_VERSION>700 && !_SGIAPI
/* 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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment