# HG changeset patch # User al # Date 1373826675 0 # Node ID 29b462786834c33c24b259223b342133a4b40991 # Parent cb8ef00df29f02e32d57183ebf77fd69efd19b3b build: Define _BSD_SOURCE for gethostbyname2 This broke in 1dca91d when a bunch of source #defines were defined unconditionally for all source files. Restore IPv6 support in stream/tcp module by handling it analog to how strsep was handled in 11b73048 . Patch-by: Erik Auerswald >auerswal unix-ag uni-kl de< diff -r cb8ef00df29f -r 29b462786834 configure --- a/configure Sat Jul 13 21:24:47 2013 +0000 +++ b/configure Sun Jul 14 18:31:15 2013 +0000 @@ -3598,6 +3598,7 @@ echocheck "gethostbyname2" if test "$_gethostbyname2" = auto ; then cat > $TMPC << EOF +#define _BSD_SOURCE #include #include #include diff -r cb8ef00df29f -r 29b462786834 stream/tcp.c --- a/stream/tcp.c Sat Jul 13 21:24:47 2013 +0000 +++ b/stream/tcp.c Sun Jul 14 18:31:15 2013 +0000 @@ -20,6 +20,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#define _BSD_SOURCE + #include #include #include