aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-08-20 11:06:43 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-08-20 11:06:43 +0200
commit4881394c3cdc09a32eba79bcf05f8acca57880d9 (patch)
tree01b63e58cee3e6ee0a51df970bc53fb7aa7fa912
parentb73fe4a68b41fb7804101ed516aa6c806ff18260 (diff)
downloadbuildroot-4881394c3cdc09a32eba79bcf05f8acca57880d9.tar.gz
buildroot-4881394c3cdc09a32eba79bcf05f8acca57880d9.tar.bz2
ntfs-3g: add patch to fix musl build issue
This commit adds a simple patch that fixes the build with the musl C library. The fix was suggested by Khem Raj (thanks!). Fixes: http://autobuild.buildroot.net/results/eb6dabccf729f96a4e06a98526eb4c716fa6bcd2/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/ntfs-3g/0001-libfuse-util-include-paths.h-when-needed.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/package/ntfs-3g/0001-libfuse-util-include-paths.h-when-needed.patch b/package/ntfs-3g/0001-libfuse-util-include-paths.h-when-needed.patch
new file mode 100644
index 0000000000..1765f68c89
--- /dev/null
+++ b/package/ntfs-3g/0001-libfuse-util-include-paths.h-when-needed.patch
@@ -0,0 +1,43 @@
+From da021ed297ff7a69f3b7532ef68a9b6877a55265 Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Date: Sat, 20 Aug 2016 11:05:27 +0200
+Subject: [PATCH] libfuse-util: include <paths.h> when needed
+
+Both fusermount.c and mount_util.c use _PATH_MOUNTED, so they should
+include <paths.h>, which provides this definition.
+
+This fixes the build with the musl C library.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ libfuse-lite/fusermount.c | 1 +
+ libfuse-lite/mount_util.c | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/libfuse-lite/fusermount.c b/libfuse-lite/fusermount.c
+index 4e724db..680fee1 100644
+--- a/libfuse-lite/fusermount.c
++++ b/libfuse-lite/fusermount.c
+@@ -19,6 +19,7 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <pwd.h>
++#include <paths.h>
+
+ #ifdef __SOLARIS__
+ #include <sys/mnttab.h>
+diff --git a/libfuse-lite/mount_util.c b/libfuse-lite/mount_util.c
+index 8ea5e08..8b31722 100644
+--- a/libfuse-lite/mount_util.c
++++ b/libfuse-lite/mount_util.c
+@@ -15,6 +15,7 @@
+ #include <dirent.h>
+ #include <errno.h>
+ #include <limits.h>
++#include <paths.h>
+ #include <sys/stat.h>
+ #include <sys/wait.h>
+ #ifdef __SOLARIS__
+--
+2.7.4
+