build: fix for NonStop

- 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
This commit is contained in:
Randall S. Becker 2022-10-27 10:04:55 -05:00 committed by Jay Satiro
parent 1e52285335
commit fc8d6b2370
2 changed files with 7 additions and 0 deletions

View 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"

View file

@ -34,6 +34,10 @@
#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.