From fc8d6b2370bdbf1c4002c4aecb856a0b4f419b62 Mon Sep 17 00:00:00 2001 From: "Randall S. Becker" Date: Thu, 27 Oct 2022 10:04:55 -0500 Subject: [PATCH] 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 --- lib/krb5.c | 3 +++ lib/noproxy.c | 4 ++++ 2 files changed, 7 insertions(+) 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.