aboutsummaryrefslogtreecommitdiffstats
path: root/testing/exfat-utils
diff options
context:
space:
mode:
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;