Skip to content

Commit

Permalink
Fix build on GNU/Hurd (#1417)
Browse files Browse the repository at this point in the history
Definitions of htonl() and htons() require these headers, in this order.
  • Loading branch information
yadij authored and squid-anubis committed Jul 12, 2023
1 parent 654835f commit a375f48
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/base/RandomUuid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@

#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()
Expand Down

0 comments on commit a375f48

Please sign in to comment.