From: Amos Jeffries Date: Wed, 12 Jul 2023 11:55:15 +0000 (+0000) Subject: Fix build on GNU/Hurd (#1417) X-Git-Tag: SQUID_6_2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baff4e11aeb2357f2fbfb290d2fdfcf1ee99d407;p=thirdparty%2Fsquid.git Fix build on GNU/Hurd (#1417) Definitions of htonl() and htons() require these headers, in this order. --- diff --git a/src/base/RandomUuid.cc b/src/base/RandomUuid.cc index 30621aaa82..7034491628 100644 --- a/src/base/RandomUuid.cc +++ b/src/base/RandomUuid.cc @@ -15,6 +15,13 @@ #include +#if HAVE_NETINET_IN_H +#include +#endif +#if HAVE_ARPA_INET_H +#include +#endif + static_assert(sizeof(RandomUuid) == 128/8, "RandomUuid has RFC 4122-prescribed 128-bit size"); RandomUuid::RandomUuid()