Included <paths.h> where useful in fuse-lite

Both fusermount.c and mount_util.c use _PATH_MOUNTED, so they should
include <paths.h>, which provides this definition.
This is required for building with the musl C library.

Contributed by Thomas Petazzoni
This commit is contained in:
Jean-Pierre André 2017-02-11 09:08:22 +01:00
parent 28c479af6a
commit 30ae872b89
2 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <pwd.h> #include <pwd.h>
#include <paths.h>
#ifdef __SOLARIS__ #ifdef __SOLARIS__
#include <sys/mnttab.h> #include <sys/mnttab.h>

View File

@ -15,6 +15,7 @@
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <limits.h> #include <limits.h>
#include <paths.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/wait.h> #include <sys/wait.h>
#ifdef __SOLARIS__ #ifdef __SOLARIS__