]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
build: fix for NonStop
authorRandall S. Becker <rsbecker@nexbridge.com>
Thu, 27 Oct 2022 15:04:55 +0000 (10:04 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 27 Oct 2022 20:57:53 +0000 (16:57 -0400)
- Include arpa/inet.h in all units where htonl is called.

Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
Closes https://github.com/curl/curl/pull/9816

lib/krb5.c
lib/noproxy.c

index 517491c4658bf2fcb7f1d3c6544a054ca03cd826..07d21903d600ceae1a1e12bf6292f34b322c52da 100644 (file)
@@ -41,6 +41,9 @@
 #ifdef HAVE_NETDB_H
 #include <netdb.h>
 #endif
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
 
 #include "urldata.h"
 #include "curl_base64.h"
index 81f1e09934146e5297ed1eeb2a8e367d9757a992..3409dab6f6eda88e85ecf97d69f693e4093fe3fd 100644 (file)
 #include <netinet/in.h>
 #endif
 
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+
 /*
  * Curl_cidr4_match() returns TRUE if the given IPv4 address is within the
  * specified CIDR address range.