From: Viktor Szakats Date: Tue, 25 Oct 2022 15:19:28 +0000 (+0000) Subject: noproxy: include netinet/in.h for htonl() X-Git-Tag: curl-7_86_0~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=86c0029047022ea150df1f1a35f184dd7315288a;p=thirdparty%2Fcurl.git noproxy: include netinet/in.h for htonl() Solve the Amiga build warning by including `netinet/in.h`. `krb5.c` and `socketpair.c` are using `htonl()` too. This header is already included in those sources. Regression from 1e9a538e05c0107c54ef81d9de7cd0b27cd13309 Reviewed-by: Daniel Stenberg Closes #9787 --- diff --git a/lib/noproxy.c b/lib/noproxy.c index 4b70a4be47..81f1e09934 100644 --- a/lib/noproxy.c +++ b/lib/noproxy.c @@ -30,6 +30,10 @@ #include "strcase.h" #include "noproxy.h" +#ifdef HAVE_NETINET_IN_H +#include +#endif + /* * Curl_cidr4_match() returns TRUE if the given IPv4 address is within the * specified CIDR address range.