summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-02 19:09:56 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-02 19:09:56 +0000
commitb23b5ed620e2fd4f1f8af52f80c6b0c87deec110 (patch)
tree619f176175b56c7b80b3cfeec8d5d20e2772392a /ext
parent10a0dea1f5fddd26d2b29f41fa190049eec95550 (diff)
* ext/curses/curses.c: define _XOPEN_SOURCE_EXTENDED on HP-UX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/curses/curses.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index 3ff20f41c0..45118d19fd 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -28,6 +28,10 @@
# endif
# include <curses_colr/curses.h>
#else
+# if defined(__hpux) && !defined(_XOPEN_SOURCE_EXTENDED)
+/* HP-UX needs _XOPEN_SOURCE_EXTENDED to use getmaxy, etc. */
+# define _XOPEN_SOURCE_EXTENDED
+# endif
# include <curses.h>
# if defined(__bsdi__) || defined(__NetBSD__) || defined(__APPLE__)
# if !defined(_maxx)
@@ -1173,7 +1177,6 @@ window_color_set(VALUE obj, VALUE col)
GetWINDOW(obj, winp);
res = wcolor_set(winp->window, NUM2INT(col), NULL);
return (res == OK) ? Qtrue : Qfalse;
- return Qfalse;
}
#endif /* defined(USE_COLOR) && defined(HAVE_WCOLOR_SET) */