diff --git a/net-p2p/ethash/files/patch-lib_ethash_endianness.hpp b/net-p2p/ethash/files/patch-lib_ethash_endianness.hpp index 4a7546acd522..f6d6375e49b3 100644 --- a/net-p2p/ethash/files/patch-lib_ethash_endianness.hpp +++ b/net-p2p/ethash/files/patch-lib_ethash_endianness.hpp @@ -1,11 +1,19 @@ ---- lib/ethash/endianness.hpp.orig 2021-11-09 08:29:42 UTC +--- lib/ethash/endianness.hpp.orig 2023-04-03 20:30:42 UTC +++ lib/ethash/endianness.hpp -@@ -24,7 +24,7 @@ +@@ -24,13 +24,15 @@ #endif #endif -#if __has_builtin(__builtin_bswap64) || defined(__GNUC__) +#if (__has_builtin(__builtin_bswap64) || defined(__GNUC__)) && !defined(__FreeBSD__) #define bswap32 __builtin_bswap32 #define bswap64 __builtin_bswap64 #elif defined(_MSC_VER) + #include + #define bswap32 _byteswap_ulong + #define bswap64 _byteswap_uint64 ++#elif defined(__FreeBSD__) ++#include + #endif + + namespace ethash