Blame view

buildroot/buildroot-2016.08.1/package/ntfs-3g/0001-libfuse-util-include-paths.h-when-needed.patch 1.19 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  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