summaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
Diffstat (limited to 'parser.l')
-rw-r--r--parser.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/parser.l b/parser.l
index c1013c87..c629e481 100644
--- a/parser.l
+++ b/parser.l
@@ -35,8 +35,10 @@
#include <dirent.h>
#include <wchar.h>
#include <setjmp.h>
-#include <unistd.h>
#include "config.h"
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#include "lib.h"
#include "y.tab.h"
#include "gc.h"