summaryrefslogtreecommitdiff
path: root/m4/getaddrinfo.m4
Commit message (Collapse)AuthorAgeFilesLines
...
* 2005-10-01 Simon Josefsson <jas@extundo.com>Simon Josefsson2005-10-011-0/+9
| | | | | * getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD and Darwin.
* 2005-10-01 Simon Josefsson <jas@extundo.com>Simon Josefsson2005-10-011-1/+18
| | | | | | | | * 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.
* (gl_GETADDRINFO): Look for getservbyname in theseJim Meyering2005-10-011-2/+3
| | | | | | | | 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.
* Sync from coreutils.Jim Meyering2005-09-271-0/+1
| | | | | (gl_GETADDRINFO): Check for gethostbyname in the inet and nsl libraries. Required on Solaris 5.7.
* * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.Paul Eggert2005-09-231-2/+1
| | | | | | | | | | 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.
* Sync from coreutils.Jim Meyering2005-09-231-2/+4
| | | | | | | | | 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.
* * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. MakeDerek R. Price2005-09-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, fromSimon Josefsson2005-05-101-0/+1
| | | | Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
* Use an all-permissive copyright notice, recommended by RMS.Paul Eggert2005-01-231-6/+4
|
* Add getaddrinfo.Simon Josefsson2004-11-101-0/+20