socketmodule uses the functions: - hstrerror - inet_aton - inet_pton and definitions: - NI_MAXHOST - NI_MAXSERV which aren't defined by IEEE Std 1003.1, 2003 Edition (regarding to http://www.unix.org/single_unix_specification/). The attached patch changes configure.in so that configure tries to take the adress of the functions rather than the autoconf library function check. Because with the later the POSIX/POSIX_C_SOURCE/XOPEN etc definitions are not set. It also changes socketmodule.c to define NI_MAXHOST and NI_MAXSERV if they haven't been defined already. This fixes compilation of socketmodule on: NetBSD 1.6R i386