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
commit0a66e8ff0bdb3d94e25735fff026f9dd5b29c99b (patch)
tree634c6d462456fb8ad5b3cb421c9769db5cfe5c68 /ext
parent3eff970f90c8cec984d620896b998b64dfe384c8 (diff)
* ext/curses/curses.c: define _XOPEN_SOURCE_EXTENDED on HP-UX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@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 70a4b41..1476a19 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)
@@ -1255,7 +1259,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 /* USE_COLOR */