diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-02-28 05:09:50 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-02-28 05:09:50 +0000 |
commit | 959282506aa3cf454969d62a42299a8286add0b6 (patch) | |
tree | afd6803773b3e264c01934ef5d017d50e9dd0bcd /acinclude.m4 | |
parent | aa43cd779c2a321ae3a3b52675b6e4b919c1594b (diff) |
Fixes for a couple of problems, from Albert Chin:
1. On Solaris, inet_ntop and inet_pton need to be linked against
-lnsl. AC_CHECK_FUNC() isn't good enough unless LIBS already
has -lnsl.
2. On IRIX, the blanket redefinition of the inet_ntop function
prototype is incorrect (compiling with MIPSpro 7.4):
cc-1143 cc: ERROR File = inet_v6defs.h, Line = 32
Declaration is incompatible with
"const char *inet_ntop(int, const void *, char *, socklen_t)"
(declared at line 89 of "/usr/include/arpa/inet.h").
extern const char *inet_ntop(int af, const void *src, char *dst,
^
1 error detected in the compilation of "inet_pton.c".
gmake[4]: *** [inet_pton.o] Error 2
On IRIX, the correct prototype is:
extern const char *inet_ntop(int, const void *, char *, socklen_t);
Rather than blindly replacing the prototype we detect if a
prototype exists and define it only if one does not exist.
svn path=/trunk/; revision=7218
Diffstat (limited to 'acinclude.m4')
0 files changed, 0 insertions, 0 deletions