aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--configure.ac1
-rw-r--r--src/bindfs.c3
3 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 71b65f5..7a90288 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2020-09-23 Martin Pärtel <martin dot partel at gmail dot com>
+
+ * Added missing include for "sys/file.h".
2020-05-13 Martin Pärtel <martin dot partel at gmail dot com>
* Fixed missing newlines bug with --map-passwd and --map-group
diff --git a/configure.ac b/configure.ac
index bff2c9f..8eb9733 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,6 +32,7 @@ AC_SUBST([my_CFLAGS])
AC_SUBST([my_LDFLAGS])
# Checks for platform-specific stuff
+AC_CHECK_HEADERS([sys/file.h])
AC_CHECK_FUNCS([lutimes utimensat])
AC_CHECK_FUNCS([setxattr getxattr listxattr removexattr])
AC_CHECK_FUNCS([lsetxattr lgetxattr llistxattr lremovexattr])
diff --git a/src/bindfs.c b/src/bindfs.c
index 0d14447..5f82af3 100644
--- a/src/bindfs.c
+++ b/src/bindfs.c
@@ -57,6 +57,9 @@
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
+#ifdef HAVE_SYS_FILE_H
+#include <sys/file.h>
+#endif
#include <sys/time.h>
#include <sys/statvfs.h>
#include <sys/file.h>