diff stream/tcp.c @ 36266:29b462786834

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<
author al
date Sun, 14 Jul 2013 18:31:15 +0000
parents a2750366a255
children 67e2b2a5ce42
line wrap: on
line diff
--- 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 <stdlib.h>
 #include <string.h>
 #include <unistd.h>