From 3f10f219d18e42967c67349f6e5f4340769e524d Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Mon, 13 Mar 2017 02:32:06 +0000 Subject: Fixed compiling on FreeBSD. Fixes #51. Test suite changes will come in a later commit. --- src/bindfs.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bindfs.c') 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 */ -- cgit v1.2.3