diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-09 06:39:02 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-09 06:39:02 +0000 |
commit | bb4ade0ab6d298837891224d839026cc7c7c988a (patch) | |
tree | a0afd0679be442fa9aae5b8603c72255e8e9d42d | |
parent | db24e481b356aab7a2f589f096f8672b42be42c0 (diff) | |
download | ruby-bb4ade0ab6d298837891224d839026cc7c7c988a.tar.gz |
* ext/readline/readline.c: include <unistd.h> only when
HAVE_UNISTD_H is defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/readline/readline.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Apr 9 15:35:04 2003 NAKAMURA Usaku <usa@ruby-lang.org> + + * ext/readline/readline.c: include <unistd.h> only when + HAVE_UNISTD_H is defined. + Wed Apr 9 14:05:00 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net> * marshal.c (w_object): preserve extended module on struct. diff --git a/ext/readline/readline.c b/ext/readline/readline.c index fc17dad4f1..bc98df92f6 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> |