| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
* getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
and Darwin.
|
|
|
|
|
|
|
|
| |
* getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
freeaddrinfo and gai_strerror are declared by the POSIX headers.
Check if struct addrinfo is declared.
|
|
|
|
|
|
|
|
| |
libraries [inet nsl socket xnet]. Nelson Beebe reported that with
native cc on Solaris 7, getaddrinfo.c requires -lsocket.
(gl_GETADDRINFO): Check for gethostbyname
in the inet and nsl libraries. Required on Solaris 5.7.
|
|
|
|
|
| |
(gl_GETADDRINFO): Check for gethostbyname
in the inet and nsl libraries. Required on Solaris 5.7.
|
|
|
|
|
|
|
|
|
|
| |
Problem reported by Eric Blake.
(getaddrinfo): Initialize se so that it's not garbage.
Redo internal storage allocation so that it doesn't make unportable
assumptions about alignment.
Fix a memory leak.
* m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
not needed, since socklen is a prerequisite module.
|
|
|
|
|
|
|
|
|
| |
Correct build failure (socklen_t not defined) on at least
mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
(gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
Sync from coreutils.
(gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
LGPL.
* modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
Make canon-host require getaddrinfo.
* m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
AC_LIBSOURCE canon-host.h. Call...
(gl_PREREQ_CANON_HOST): ...this new function, which requires
gl_GETADDRINFO.
* m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when
needed.
Return usable errors from canon-host.
* lib/canon-host.h: New file.
* lib/canon-host.c (canon_host): Wrap...
(canon_host_r): ...this new function, which now relies exclusively on
getaddrinfo.
(ch_strerror): New function.
(last_cherror): New global.
* lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
interface.
(getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic
on void *.
(freeaddrinfo): Free ai->ai_canonname when set.
|
|
|
|
| |
Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
|
| |
|
|
|