diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2020-09-23 22:35:18 +0300 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2020-09-23 22:35:18 +0300 |
commit | 9466e22a8be617c0c4556d99f0574b39b253e184 (patch) | |
tree | 9602429918f43ec7e7cb72c919a8f2ba1e5f80b7 | |
parent | a9affbb7c65c05a2bc3a827ad12712100e01d98a (diff) | |
download | bindfs-9466e22a8be617c0c4556d99f0574b39b253e184.tar.gz |
Added missing include for "sys/file.h" (for flock()).
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/bindfs.c | 3 |
3 files changed, 7 insertions, 0 deletions
@@ -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> |