git: 7d5953d80978 - main - games/Doom64EX: fix build

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sat, 15 Jun 2024 10:09:46 UTC
The branch main has been updated by pkubaj:

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

commit 7d5953d80978739517d168a77fc15f7c77970aab
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-06-14 17:59:26 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-06-15 10:09:35 +0000

    games/Doom64EX: fix build
    
    /wrkdirs/usr/ports/games/Doom64EX/work/Doom64EX-03a5e6a5a3a14d66886f62b72431b37ef7336706/include/imp/util/Endian:64:12: error: use of undeclared identifier 'bswap16'
       64 |   { return bswap16(x); }
          |            ^
---
 games/Doom64EX/files/patch-include_imp_util_Endian | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/games/Doom64EX/files/patch-include_imp_util_Endian b/games/Doom64EX/files/patch-include_imp_util_Endian
index a071f8f6967d..f88c2e051505 100644
--- a/games/Doom64EX/files/patch-include_imp_util_Endian
+++ b/games/Doom64EX/files/patch-include_imp_util_Endian
@@ -1,15 +1,15 @@
 --- include/imp/util/Endian.orig	2018-08-24 09:23:34 UTC
 +++ include/imp/util/Endian
-@@ -10,7 +10,7 @@
- # define BIG_ENDIAN 0x1234
- # define LITTLE_ENDIAN 0x4321
+@@ -12,6 +12,8 @@
  # define BYTE_ORDER LITTLE_ENDIAN
--#elif defined(__APPLE__)
-+#elif defined(__APPLE__) || defined(__FreeBSD__)
+ #elif defined(__APPLE__)
  # include <machine/endian.h>
++#elif defined(__FreeBSD__)
++# include <sys/endian.h>
  #else
  # include <endian.h>
-@@ -57,6 +57,26 @@ namespace imp {
+ #endif
+@@ -57,6 +59,26 @@ namespace imp {
  
      inline uint64 swap_bytes(uint64 x) noexcept
      { return OSSwapInt64(x); }