made the SGI INET_ADDRSTRLEN define apply for any compiler on Irix. Both the
SGI compiler and GCC seem to need this.
This commit is contained in:
parent
6169c6bc1d
commit
bab23cfc26
|
@ -194,14 +194,17 @@ shutdown(how) -- shut down traffic in one or both directions\n\
|
||||||
but I don't know what the right thing is. */
|
but I don't know what the right thing is. */
|
||||||
#define _SGIAPI 1
|
#define _SGIAPI 1
|
||||||
|
|
||||||
#ifndef ENABLE_IPV6
|
|
||||||
#define INET_ADDRSTRLEN 16
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define HAVE_INET_PTON
|
#define HAVE_INET_PTON
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Irix 6.5 fails to define this variable at all. This is needed
|
||||||
|
for both GCC and SGI's compiler. I'd say that the SGI headers
|
||||||
|
are just busted. */
|
||||||
|
#if defined(__sgi) && !defined(INET_ADDRSTRLEN)
|
||||||
|
#define INET_ADDRSTRLEN 16
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Generic includes */
|
/* Generic includes */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
Loading…
Reference in New Issue