aboutsummaryrefslogtreecommitdiffstats
path: root/testing/exfat-utils
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2014-10-28 12:56:17 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2014-10-28 12:56:17 +0100
commite087af4ac036d8205fe205baf491560c0842d3ca (patch)
tree1428bcaebf97a062efd6ebd27ee3177fd9f7fada /testing/exfat-utils
parentcf6c36660616ed53483254a9706a964bbc2dee45 (diff)
downloadaports-e087af4ac036d8205fe205baf491560c0842d3ca.tar.bz2
aports-e087af4ac036d8205fe205baf491560c0842d3ca.tar.xz
testing/exfat-utils: add missing patch
Diffstat (limited to 'testing/exfat-utils')
-rw-r--r--testing/exfat-utils/musl-not-found.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/exfat-utils/musl-not-found.patch b/testing/exfat-utils/musl-not-found.patch
new file mode 100644
index 0000000000..c5f5bb6d7a
--- /dev/null
+++ b/testing/exfat-utils/musl-not-found.patch
@@ -0,0 +1,18 @@
+--- a/libexfat/byteorder.h.orig
++++ b/libexfat/byteorder.h
+@@ -74,7 +74,14 @@
+ #endif
+
+ #else
+-#error No byte order macros available for your platform
++#include <endian.h>
++#include <byteswap.h>
++#define exfat_bswap16(x) bswap_16(x)
++#define exfat_bswap32(x) bswap_32(x)
++#define exfat_bswap64(x) bswap_64(x)
++#define EXFAT_BYTE_ORDER __BYTE_ORDER
++#define EXFAT_LITTLE_ENDIAN __LITTLE_ENDIAN
++#define EXFAT_BIG_ENDIAN __BIG_ENDIAN
+ #endif
+
+ typedef struct { uint16_t __u16; } le16_t;