summaryrefslogtreecommitdiff
path: root/package/cifs-utils
diff options
context:
space:
mode:
authorJörg Krause <joerg.krause@embedded.rocks>2015-08-15 18:07:21 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-08-17 22:53:58 +0200
commit4d53184aff4e0e57ddc6ef64a6891f13a1aa9a67 (patch)
tree688d2bdbd50dc98a66b5e93dbb757f22b1aabf48 /package/cifs-utils
parenta1c16fb29926d2cc9b65229befc1a08ac11b14e8 (diff)
package/cifs-utils: add upstream patch to fix musl build
Fixes build error with the musl C library: ``` error: '_PATH_MOUNTED' undeclared (first use in this function) ``` Fixes: http://autobuild.buildroot.net/results/44e/44e800d9933160c48b9c2447d63eeb37a0065d03/ http://autobuild.buildroot.net/results/b9f/b9f918bba4952566e3818fb99f45a7e425acf727/ http://autobuild.buildroot.net/results/8de/8dec8c46ad1959066101efe7cc1781f3d4732028/ http://autobuild.buildroot.net/results/cc3/cc38e7581b4bba362a9be388099b0ea237f4e580/ and many more. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/cifs-utils')
-rw-r--r--package/cifs-utils/0001-mtab.c-include-paths.h-for-_PATH_MOUNTED.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/cifs-utils/0001-mtab.c-include-paths.h-for-_PATH_MOUNTED.patch b/package/cifs-utils/0001-mtab.c-include-paths.h-for-_PATH_MOUNTED.patch
new file mode 100644
index 000000000..8fbec11c3
--- /dev/null
+++ b/package/cifs-utils/0001-mtab.c-include-paths.h-for-_PATH_MOUNTED.patch
@@ -0,0 +1,31 @@
+From 6603cef0f06c450196a1bca06bb143d8fcda5651 Mon Sep 17 00:00:00 2001
+From: Felix Janda <felix.janda@posteo.de>
+Date: Fri, 5 Dec 2014 23:19:29 +0100
+Subject: [PATCH 1/1] mtab.c: include <paths.h> for _PATH_MOUNTED
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Backported from: 6603cef0f06c450196a1bca06bb143d8fcda5651
+
+Signed-off-by: Felix Janda <felix.janda@posteo.de>
+Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
+---
+ mtab.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/mtab.c b/mtab.c
+index 7b365b3..a662a3c 100644
+--- a/mtab.c
++++ b/mtab.c
+@@ -38,6 +38,7 @@
+ #include <mntent.h>
+ #include <stdlib.h>
+ #include <signal.h>
++#include <paths.h>
+ #include "mount.h"
+ #include "config.h"
+
+--
+2.5.0
+