git: bae28b2eaf9d - main - net-p2p/ethash: Fix build on HEAD

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 12 Sep 2024 15:10:25 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bae28b2eaf9d16d662e3a81b036b5731c66ae642

commit bae28b2eaf9d16d662e3a81b036b5731c66ae642
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-09-12 13:51:36 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-09-12 15:09:46 +0000

    net-p2p/ethash: Fix build on HEAD
    
    PR:             281383
    Reported by:    evenson.not.org@gmail.com
---
 net-p2p/ethash/files/patch-lib_ethash_endianness.hpp | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

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,6 +1,6 @@
---- 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
  
@@ -9,3 +9,11 @@
  #define bswap32 __builtin_bswap32
  #define bswap64 __builtin_bswap64
  #elif defined(_MSC_VER)
+ #include <stdlib.h>
+ #define bswap32 _byteswap_ulong
+ #define bswap64 _byteswap_uint64
++#elif defined(__FreeBSD__)
++#include <sys/endian.h>
+ #endif
+ 
+ namespace ethash