aports/testing/exfat-utils/musl-not-found.patch
2014-10-28 12:56:17 +01:00

19 lines
488 B
Diff

--- 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;