summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-11-29 23:59:15 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-11-29 23:59:15 +0000
commitbe020d6c05157df3d1d3a35abf7dce727a6d5dac (patch)
treefb93ad0e918ca65c82ce6df58517d2ff4ed7d0c2 /ext
parent23303b8a63df927cd81b9947dd48e1b416e2a39c (diff)
downloadruby-be020d6c05157df3d1d3a35abf7dce727a6d5dac.tar.gz
bug fix for getnstr() and wgetnstr()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/curses/curses.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index 5959445f8e..c756c47caa 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -396,7 +396,7 @@ curses_getstr(obj)
char rtn[1024]; /* This should be big enough.. I hope */
rb_read_check(stdin);
-#ifdef GETNSTR
+#if defined(HAVE_GETNSTR)
getnstr(rtn,1023);
#else
getstr(rtn);
@@ -1024,7 +1024,7 @@ window_getstr(obj)
GetWINDOW(obj, winp);
rb_read_check(stdin);
-#ifdef WGETNSTR
+#if defined(HAVE_WGETNSTR)
wgetnstr(winp->window, rtn, 1023);
#else
wgetstr(winp->window, rtn);