From e087af4ac036d8205fe205baf491560c0842d3ca Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Tue, 28 Oct 2014 12:56:17 +0100 Subject: testing/exfat-utils: add missing patch --- testing/exfat-utils/musl-not-found.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 testing/exfat-utils/musl-not-found.patch (limited to 'testing') 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 ++#include ++#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; -- cgit v1.2.3