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:
@@ -2,7 +2,7 @@ SubDir HAIKU_TOP src bin network wget ;
|
|||||||
|
|
||||||
UseHeaders [ FDirName $(SUBDIR) src ] : true ;
|
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) ;
|
SubDirCcFlags $(defines) ;
|
||||||
SubDirC++Flags $(defines) ;
|
SubDirC++Flags $(defines) ;
|
||||||
|
|||||||
Reference in New Issue
Block a user