projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix the build on OS X
[ghc-hetmet.git]
/
includes
/
rts
/
FileLock.h
diff --git
a/includes/rts/FileLock.h
b/includes/rts/FileLock.h
index
9a35ecc
..
ab59173
100644
(file)
--- a/
includes/rts/FileLock.h
+++ b/
includes/rts/FileLock.h
@@
-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);