Fix the build on OS X
[ghc-hetmet.git] / includes / rts / FileLock.h
index 9a35ecc..ab59173 100644 (file)
@@ -9,6 +9,10 @@
 #ifndef RTS_FILELOCK_H
 #define RTS_FILELOCK_H
 
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
 int  lockFile(int fd, dev_t dev, ino_t ino, int for_writing);
 int  unlockFile(int fd);