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.
This commit is contained in:
parent
e7c4ad324e
commit
0a1334de28
@ -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) ;
|
||||
|
Loading…
Reference in New Issue
Block a user