summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-05 09:01:07 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-05 09:01:07 +0000
commit656d6d28704943d2960b20761b6d05386086e8a2 (patch)
treec99fec4f83ee9eb51430be6aaec27682c7dc6367 /ext
parent7f3aa8b9ea9aaf38f4167e95ba86dd5d3766554e (diff)
2000-06-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/pty/pty.c4
-rw-r--r--ext/readline/extconf.rb8
2 files changed, 7 insertions, 5 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index b8c4e9acae..333d569d85 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -15,8 +15,8 @@
#endif
#include <ctype.h>
-#include <ruby.h>
-#include <rubyio.h>
+#include "ruby.h"
+#include "rubyio.h"
#include <signal.h>
#ifdef HAVE_SYS_STROPTS_H
diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb
index 3dd9c0fc1e..7db62745f3 100644
--- a/ext/readline/extconf.rb
+++ b/ext/readline/extconf.rb
@@ -1,9 +1,11 @@
require "mkmf"
dir_config("readline")
-have_library("user32", nil) if /cygwin/ === PLATFORM
-have_library("termcap", "tgetnum")
-have_library("curses", "tgetnum")
+have_library("user32", nil) if /cygwin/ === RUBY_PLATFORM
+have_library("ncurses", "tgetnum") or
+ have_library("termcap", "tgetnum") or
+ have_library("curses", "tgetnum")
+
if have_header("readline/readline.h") and
have_header("readline/history.h") and
have_library("readline", "readline")