aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/world.c b/src/world.c
index 2a29820a..50f5bc9e 100644
--- a/src/world.c
+++ b/src/world.c
@@ -20,16 +20,16 @@
#include "serd_config.h"
-#if defined(HAVE_POSIX_FADVISE)
-# include <fcntl.h>
-#endif
-
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#if defined(HAVE_POSIX_FADVISE) || defined(HAVE_FILENO)
+# include <fcntl.h>
+#endif
+
FILE*
serd_world_fopen(SerdWorld* world, const char* path, const char* mode)
{