summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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