From 9466e22a8be617c0c4556d99f0574b39b253e184 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Wed, 23 Sep 2020 22:35:18 +0300 Subject: Added missing include for "sys/file.h" (for flock()). --- ChangeLog | 3 +++ configure.ac | 1 + src/bindfs.c | 3 +++ 3 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 71b65f5..7a90288 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2020-09-23 Martin Pärtel + + * Added missing include for "sys/file.h". 2020-05-13 Martin Pärtel * 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 #endif +#ifdef HAVE_SYS_FILE_H +#include +#endif #include #include #include -- cgit v1.2.3