aboutsummaryrefslogtreecommitdiffstats
path: root/src/bindfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindfs.c')
-rw-r--r--src/bindfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bindfs.c b/src/bindfs.c
index af3763c..cf681dd 100644
--- a/src/bindfs.c
+++ b/src/bindfs.c
@@ -34,6 +34,9 @@
/* For >= 500 for pread/pwrite and readdir_r; >= 700 for utimensat */
#define _XOPEN_SOURCE 700
+/* For flock() on FreeBSD. It otherwise gets hidden by _XOPEN_SOURCE */
+#define __BSD_VISIBLE 1
+
/* For stat() nanosecond precision and lutimes() */
#define _BSD_SOURCE
/* The new non-deprecated version of _BSD_SOURCE */