pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/audio/mixxx/patches



Module Name:    pkgsrc
Committed By:   nia
Date:           Mon Dec 13 17:24:38 UTC 2021

Added Files:
        pkgsrc/audio/mixxx/patches: patch-lib_kaitai_kaitaistream.cpp

Log Message:
mixxx: add missing patch.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/audio/mixxx/patches/patch-lib_kaitai_kaitaistream.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/audio/mixxx/patches/patch-lib_kaitai_kaitaistream.cpp
diff -u /dev/null pkgsrc/audio/mixxx/patches/patch-lib_kaitai_kaitaistream.cpp:1.1
--- /dev/null   Mon Dec 13 17:24:38 2021
+++ pkgsrc/audio/mixxx/patches/patch-lib_kaitai_kaitaistream.cpp        Mon Dec 13 17:24:38 2021
@@ -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 <endian.h>
+ #include <byteswap.h>
++#else // !__APPLE__ or !_MSC_VER
++#include <endian.h>
++#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 <iostream>



Home | Main Index | Thread Index | Old Index