From 86c0029047022ea150df1f1a35f184dd7315288a Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 25 Oct 2022 15:19:28 +0000 Subject: [PATCH] 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 --- lib/noproxy.c | 4 ++++ 1 file changed, 4 insertions(+) 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.