summaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2013-11-27 21:19:02 -0800
committerKaz Kylheku <kaz@kylheku.com>2013-11-27 21:19:02 -0800
commit900322c2c899af14b991bcbf324b44a0ea7e163e (patch)
treea5637accef448ffa7721d4630c5d19f4122e2452 /parser.l
parent5285db54f7199cf75c0b740faaeee15cc9cc8c6a (diff)
downloadtxr-900322c2c899af14b991bcbf324b44a0ea7e163e.tar.gz
txr-900322c2c899af14b991bcbf324b44a0ea7e163e.tar.bz2
txr-900322c2c899af14b991bcbf324b44a0ea7e163e.zip
* Changelog: missing entries reconstructed.
* Makefile (conftest.clean): Use @ to suppress output. * configure (have_unistd): New variable. Set true by every successful test that compiles something that contains #include <unistd.h>. HAVE_UNISTD_H is conditionally generated in config.h based on this variable. Minor cleanup. * parser.l: Inclusion of <unistd.h> wrapped in #if/#endif. * stream.c: Conditional inclusion of <unistd.h> based on new HAVE_UNISTD_H symbol.
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"