summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--parser.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/parser.l b/parser.l
index 93b83fc5..9d2ecd4f 100644
--- a/parser.l
+++ b/parser.l
@@ -35,6 +35,9 @@
#include <wchar.h>
#include <signal.h>
#include "config.h"
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#include "lib.h"
#include "gc.h"
#include "stream.h"
@@ -46,6 +49,8 @@
#include "parser.h"
#include "txr.h"
+#define YY_NO_UNISTD_H
+
#define YY_INPUT(buf, result, max_size) \
do { \
val self = lit("parser"); \