From 472fa043c93a5fcbf54281cfc00ce8ad3da26023 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 17 Aug 2015 23:36:29 +0200 Subject: [PATCH] fuse-exfat: fix musl. --- .../fuse-exfat/patches/musl-not-found.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/fuse-exfat/patches/musl-not-found.patch diff --git a/srcpkgs/fuse-exfat/patches/musl-not-found.patch b/srcpkgs/fuse-exfat/patches/musl-not-found.patch new file mode 100644 index 00000000000..cdec1ceb157 --- /dev/null +++ b/srcpkgs/fuse-exfat/patches/musl-not-found.patch @@ -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 ++#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 + + #endif /* ifndef PLATFORM_H_INCLUDED */