summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rts/posix/FileLock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rts/posix/FileLock.c b/rts/posix/FileLock.c
index a6052c7381..7023b9ef67 100644
--- a/rts/posix/FileLock.c
+++ b/rts/posix/FileLock.c
@@ -13,8 +13,9 @@
#include "Hash.h"
#include "RtsUtils.h"
-#include <unistd.h>
+#include <sys/types.h>
#include <sys/stat.h>
+#include <unistd.h>
#include <errno.h>
typedef struct {