python-cryptography: bump to version 1.7.2
[buildroot-gz.git] / package / ntfs-3g / 0001-libfuse-util-include-paths.h-when-needed.patch
blob1765f68c89ec8e9d5a8403072558d7cb09fa5e7f
1 From da021ed297ff7a69f3b7532ef68a9b6877a55265 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sat, 20 Aug 2016 11:05:27 +0200
4 Subject: [PATCH] libfuse-util: include <paths.h> when needed
6 Both fusermount.c and mount_util.c use _PATH_MOUNTED, so they should
7 include <paths.h>, which provides this definition.
9 This fixes the build with the musl C library.
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12 ---
13 libfuse-lite/fusermount.c | 1 +
14 libfuse-lite/mount_util.c | 1 +
15 2 files changed, 2 insertions(+)
17 diff --git a/libfuse-lite/fusermount.c b/libfuse-lite/fusermount.c
18 index 4e724db..680fee1 100644
19 --- a/libfuse-lite/fusermount.c
20 +++ b/libfuse-lite/fusermount.c
21 @@ -19,6 +19,7 @@
22 #include <errno.h>
23 #include <fcntl.h>
24 #include <pwd.h>
25 +#include <paths.h>
27 #ifdef __SOLARIS__
28 #include <sys/mnttab.h>
29 diff --git a/libfuse-lite/mount_util.c b/libfuse-lite/mount_util.c
30 index 8ea5e08..8b31722 100644
31 --- a/libfuse-lite/mount_util.c
32 +++ b/libfuse-lite/mount_util.c
33 @@ -15,6 +15,7 @@
34 #include <dirent.h>
35 #include <errno.h>
36 #include <limits.h>
37 +#include <paths.h>
38 #include <sys/stat.h>
39 #include <sys/wait.h>
40 #ifdef __SOLARIS__
41 --
42 2.7.4