1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
akr 2006-09-02 19:09:56 +00:00
parent 3eff970f90
commit 0a66e8ff0b
2 changed files with 8 additions and 1 deletions

View file

@ -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.
Sun Sep 3 02:34:55 2006 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
* lib/drb/unix.rb (DRbUNIXSocket#close): don't get path if client mode.

View file

@ -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 */