]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
noproxy: include netinet/in.h for htonl()
authorViktor Szakats <commit@vsz.me>
Tue, 25 Oct 2022 15:19:28 +0000 (15:19 +0000)
committerViktor Szakats <commit@vsz.me>
Tue, 25 Oct 2022 15:20:45 +0000 (15:20 +0000)
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

index 4b70a4be471aea8eb91b1a52320e7bf20e138548..81f1e09934146e5297ed1eeb2a8e367d9757a992 100644 (file)
 #include "strcase.h"
 #include "noproxy.h"
 
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
 /*
  * Curl_cidr4_match() returns TRUE if the given IPv4 address is within the
  * specified CIDR address range.