summaryrefslogtreecommitdiffstats
path: root/stream.c
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 /stream.c
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 'stream.c')
-rw-r--r--stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream.c b/stream.c
index 53ab04c4..e4e0bed2 100644
--- a/stream.c
+++ b/stream.c
@@ -35,7 +35,7 @@
#include <ctype.h>
#include <wchar.h>
#include "config.h"
-#if HAVE_SYS_WAIT || HAVE_SYS_STAT || HAVE_FORK_STUFF || HAVE_POSIX_SLEEP
+#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <float.h>