blob: 1765f68c89ec8e9d5a8403072558d7cb09fa5e7f [file] [log] [blame]
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