summaryrefslogtreecommitdiffstats
path: root/liblock
diff options
context:
space:
mode:
Diffstat (limited to 'liblock')
-rw-r--r--liblock/locktest.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/liblock/locktest.c b/liblock/locktest.c
index eb5cc4a..f9ee6fc 100644
--- a/liblock/locktest.c
+++ b/liblock/locktest.c
@@ -13,6 +13,13 @@
#if USE_LOCKF
#include "locklockf.c"
#endif
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#include <sys/types.h>
+#if HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
#include <signal.h>
#include <stdlib.h>
#include <string.h>