From 3274e594f121fa89717156c5fd02eb91ac51b593 Mon Sep 17 00:00:00 2001 From: nia Date: Mon, 13 Dec 2021 17:24:38 +0000 Subject: [PATCH] mixxx: add missing patch. --- .../patches/patch-lib_kaitai_kaitaistream.cpp | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 audio/mixxx/patches/patch-lib_kaitai_kaitaistream.cpp diff --git a/audio/mixxx/patches/patch-lib_kaitai_kaitaistream.cpp b/audio/mixxx/patches/patch-lib_kaitai_kaitaistream.cpp new file mode 100644 index 000000000000..6288046f5f02 --- /dev/null +++ b/audio/mixxx/patches/patch-lib_kaitai_kaitaistream.cpp @@ -0,0 +1,25 @@ +$NetBSD: patch-lib_kaitai_kaitaistream.cpp,v 1.1 2021/12/13 17:24:38 nia Exp $ + +Portability... + +--- lib/kaitai/kaitaistream.cpp.orig 2021-09-29 13:23:02.000000000 +0000 ++++ lib/kaitai/kaitaistream.cpp +@@ -17,9 +17,17 @@ + #define bswap_16(x) _byteswap_ushort(x) + #define bswap_32(x) _byteswap_ulong(x) + #define bswap_64(x) _byteswap_uint64(x) +-#else // !__APPLE__ or !_MSC_VER ++#elif defined(__linux__) + #include + #include ++#else // !__APPLE__ or !_MSC_VER ++#include ++#define bswap_16(x) bswap16(x) ++#define bswap_32(x) bswap32(x) ++#define bswap_64(x) bswap64(x) ++#define __BYTE_ORDER BYTE_ORDER ++#define __BIG_ENDIAN BIG_ENDIAN ++#define __LITTLE_ENDIAN LITTLE_ENDIAN + #endif + + #include