fuse-exfat: fix musl.

This commit is contained in:
Enno Boland 2015-08-17 23:36:29 +02:00
parent f1104d9ac4
commit 472fa043c9

View file

@ -0,0 +1,18 @@
--- libexfat/platform.h.orig 2015-08-17 23:32:56.701648786 +0200
+++ libexfat/platform.h 2015-08-17 23:33:04.219648224 +0200
@@ -57,7 +57,14 @@
#define EXFAT_BIG_ENDIAN _BIG_ENDIAN
#else
-#error Unknown 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
#endif /* ifndef PLATFORM_H_INCLUDED */