Check for unistd.h presense
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 13 Aug 2014 11:51:00 +0000 (13:51 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 13 Aug 2014 11:51:00 +0000 (13:51 +0200)
src/eventl.c

index 2808c07..148ddd7 100644 (file)
@@ -36,7 +36,9 @@
 #include <stdio.h>
 #include <assert.h>
 
+#if HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 
 #include <stdlib.h>
 #include <errno.h>