summaryrefslogtreecommitdiffstats
path: root/ext/readline
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-09 06:39:02 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-09 06:39:02 +0000
commitcb36c57ff5faf9e11fbd7d27d479cc1a24df4e99 (patch)
treea0afd0679be442fa9aae5b8603c72255e8e9d42d /ext/readline
parent4f18dd6491e5f0b1c20871c54258779946d42238 (diff)
downloadruby-cb36c57ff5faf9e11fbd7d27d479cc1a24df4e99.tar.gz
ruby-cb36c57ff5faf9e11fbd7d27d479cc1a24df4e99.tar.xz
ruby-cb36c57ff5faf9e11fbd7d27d479cc1a24df4e99.zip
* ext/readline/readline.c: include <unistd.h> only when
HAVE_UNISTD_H is defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/readline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index fc17dad4f..bc98df92f 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -3,7 +3,9 @@
#include <errno.h>
#include <stdio.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <readline/readline.h>
#include <readline/history.h>