From: Randall S. Becker Date: Thu, 27 Oct 2022 15:04:55 +0000 (-0500) Subject: build: fix for NonStop X-Git-Tag: curl-7_87_0~226 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc8d6b2370bdbf1c4002c4aecb856a0b4f419b62;p=thirdparty%2Fcurl.git build: fix for NonStop - Include arpa/inet.h in all units where htonl is called. Signed-off-by: Randall S. Becker Closes https://github.com/curl/curl/pull/9816 --- diff --git a/lib/krb5.c b/lib/krb5.c index 517491c465..07d21903d6 100644 --- a/lib/krb5.c +++ b/lib/krb5.c @@ -41,6 +41,9 @@ #ifdef HAVE_NETDB_H #include #endif +#ifdef HAVE_ARPA_INET_H +#include +#endif #include "urldata.h" #include "curl_base64.h" diff --git a/lib/noproxy.c b/lib/noproxy.c index 81f1e09934..3409dab6f6 100644 --- a/lib/noproxy.c +++ b/lib/noproxy.c @@ -34,6 +34,10 @@ #include #endif +#ifdef HAVE_ARPA_INET_H +#include +#endif + /* * Curl_cidr4_match() returns TRUE if the given IPv4 address is within the * specified CIDR address range.