summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-04-14 14:05:47 -0400
committerDavid Robillard <d@drobilla.net>2021-04-14 14:05:47 -0400
commitb72238c97fe2e3c9db550af7d4b22d41c8350eaf (patch)
tree5d48f01e80833b26878ff10802370e4c52a7c064 /src
parent31051dfdf23426c9804d343bbeb5756da89f28a8 (diff)
downloadlilv-b72238c97fe2e3c9db550af7d4b22d41c8350eaf.tar.gz
lilv-b72238c97fe2e3c9db550af7d4b22d41c8350eaf.tar.bz2
lilv-b72238c97fe2e3c9db550af7d4b22d41c8350eaf.zip
Fix build on FreeBSD
Diffstat (limited to 'src')
-rw-r--r--src/filesystem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/filesystem.c b/src/filesystem.c
index 03614ce..2b383a7 100644
--- a/src/filesystem.c
+++ b/src/filesystem.c
@@ -17,6 +17,7 @@
#define _POSIX_C_SOURCE 200809L /* for fileno */
#define _BSD_SOURCE 1 /* for realpath, symlink */
#define _DEFAULT_SOURCE 1 /* for realpath, symlink */
+#define __BSD_VISIBLE 1
#ifdef __APPLE__
# define _DARWIN_C_SOURCE 1 /* for flock */
@@ -39,6 +40,8 @@
#endif
#if USE_FLOCK && USE_FILENO
+# include <sys/types.h>
+#
# include <sys/file.h>
#endif