summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/flock_compat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/flock_compat.c b/ext/standard/flock_compat.c
index 03f7876909..b431e02033 100644
--- a/ext/standard/flock_compat.c
+++ b/ext/standard/flock_compat.c
@@ -25,6 +25,7 @@
#if HAVE_STRUCT_FLOCK
#include <unistd.h>
#include <fcntl.h>
+#include <sys/file.h>
#endif
#ifdef PHP_WIN32