getaddrinfo: fix gai_strerror signature
[pspp] / ChangeLog
index 654d5c0594ee318c761c4d9e49c086397e38cb57..9e5aa41558003199e34931d7576369e67eb2b15d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
 2011-04-28  Eric Blake  <eblake@redhat.com>
 
+       getaddrinfo: fix gai_strerror signature
+       * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
+       and work around mingw with UNICODE defined.
+       (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
+       * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
+       * modules/netdb (Makefile.am): Substitute it.
+       * lib/netdb.in.h (gai_strerror): Declare replacement.
+       * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
+       * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
+       the fix.
+
+       getsockopt: avoid compiler warning
+       * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
+       Reported by Matthias Bolte.
+
        tests: drop unused link dependency
        * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
        * modules/dirent-safer-tests (Makefile.am): Likewise.