]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix build on GNU/Hurd (#1417)
authorAmos Jeffries <yadij@users.noreply.github.com>
Wed, 12 Jul 2023 11:55:15 +0000 (11:55 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Tue, 25 Jul 2023 14:59:56 +0000 (02:59 +1200)
Definitions of htonl() and htons() require these headers, in this order.

src/base/RandomUuid.cc

index 30621aaa82179d89531bda7c446d09de69d8d6cc..70344916286e75cfbe13126b3b045711bce90a93 100644 (file)
 
 #include <iostream>
 
+#if HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#if HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+
 static_assert(sizeof(RandomUuid) == 128/8, "RandomUuid has RFC 4122-prescribed 128-bit size");
 
 RandomUuid::RandomUuid()