summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrendan Heading <brendanheading@gmail.com>2015-07-26 23:50:45 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-27 22:40:17 +0200
commit2ca62551c04d3bcb0e2e83b9f4f5d3ff8d12110e (patch)
treef0d4b07c6cc2d2d6d42609fad214597cd5bd01a1
parent52c76667184b9de0d07169016622304d7938e571 (diff)
downloadbuildroot-2ca62551c04d3bcb0e2e83b9f4f5d3ff8d12110e.tar.gz
buildroot-2ca62551c04d3bcb0e2e83b9f4f5d3ff8d12110e.zip
package/exfat-utils: fix compilation error with musl
exfat-utils build would not build on Linux unless __GLIBC__ was defined. Patch added to use more relaxed __linux__ instead. See http://autobuild.buildroot.net/results/c60/c60d0f9a93c90d41c3c86c78b0a0 Signed-off-by: Brendan Heading <brendanheading@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/exfat-utils/0001-fix-compiling-with-non-glibc-libcs.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/exfat-utils/0001-fix-compiling-with-non-glibc-libcs.patch b/package/exfat-utils/0001-fix-compiling-with-non-glibc-libcs.patch
new file mode 100644
index 0000000000..6244b16857
--- /dev/null
+++ b/package/exfat-utils/0001-fix-compiling-with-non-glibc-libcs.patch
@@ -0,0 +1,23 @@
+[PATCH] fix compilation when libc does not define __GLIBC__
+
+libexfat would only compile on Linux with __GLIBC__ defined. Changed
+to use __linux__ which likely better fits the original intent.
+
+Signed-off-by: Brendan Heading <brendanheading@gmail.com>
+---
+ platform.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: libexfat/libexfat/platform.h
+===================================================================
+--- libexfat/libexfat/platform.h (revision 422)
++++ libexfat/libexfat/platform.h (working copy)
+@@ -24,7 +24,7 @@
+ #ifndef PLATFORM_H_INCLUDED
+ #define PLATFORM_H_INCLUDED
+
+-#if defined(__GLIBC__)
++#if defined(__linux__)
+
+ #include <endian.h>
+ #include <byteswap.h>
OpenPOWER on IntegriCloud