From 0a1334de2875e75f98ec55bb33fbb0e4db6643d1 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sun, 28 Jul 2013 14:14:22 -0400 Subject: [PATCH] Fix wget on x86-64. Define HAVE_ARPA_INET_H for the wget build. Otherwise, e.g. inet_ntoa would get an implicit declaration with a return type of int, leading to the returned character pointer getting truncated on x86-64, and consequently random crashes. --- src/bin/network/wget/Jamfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/network/wget/Jamfile b/src/bin/network/wget/Jamfile index a9d1f7b0ac..3131d3bf4a 100644 --- a/src/bin/network/wget/Jamfile +++ b/src/bin/network/wget/Jamfile @@ -2,7 +2,7 @@ SubDir HAIKU_TOP src bin network wget ; UseHeaders [ FDirName $(SUBDIR) src ] : true ; -local defines = [ FDefines HAVE_CONFIG_H=1 ] ; +local defines = [ FDefines HAVE_CONFIG_H=1 HAVE_ARPA_INET_H=1 ] ; SubDirCcFlags $(defines) ; SubDirC++Flags $(defines) ;