summaryrefslogtreecommitdiff
path: root/ext/curses
diff options
context:
space:
mode:
Diffstat (limited to 'ext/curses')
-rw-r--r--ext/curses/curses.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index 7900573df7..2e60b21609 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -1339,8 +1339,14 @@ window_nodelay(VALUE obj, VALUE val)
#ifdef HAVE_NODELAY
struct windata *winp;
GetWINDOW(obj,winp);
-
+
+ /* nodelay() of NetBSD's libcurses returns no value */
+#if defined(__NetBSD__) && !defined(NCURSES_VERSION)
+ nodelay(winp->window, RTEST(val) ? TRUE : FALSE);
+ return Qnil;
+#else
return nodelay(winp->window,RTEST(val) ? TRUE : FALSE) == OK ? Qtrue : Qfalse;
+#endif
#else
rb_notimplement();
#endif