summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog4
-rw-r--r--ext/curses/curses.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 08ef7ba3bc..6665794f7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Sep 3 04:03:06 2006 Tanaka Akira <akr@fsij.org>
+
+ * ext/curses/curses.c: define _XOPEN_SOURCE_EXTENDED on HP-UX.
+
Sat Sep 2 23:59:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (Init_String): undef Symbol#new.
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) */