From a375f488cf8b8cfcf7e760ff3d2dfd8fae1a9f2a Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 12 Jul 2023 11:55:15 +0000 Subject: [PATCH] Fix build on GNU/Hurd (#1417) Definitions of htonl() and htons() require these headers, in this order. --- src/base/RandomUuid.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/base/RandomUuid.cc b/src/base/RandomUuid.cc index 30621aaa821..70344916286 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()