From: nobu.nokada@... Date: 2003-08-17T11:58:54+09:00 Subject: Re: curses.c and Mac OS X Hi, At Sun, 17 Aug 2003 08:57:16 +0900, Ryan Davis wrote: > > |This nasty patch allows the current CVS version of Ruby to build on > > Mac OS > > |X. Without it, you get: It's my fault, sorry. > > Hmm, how did other OS X users succeed to compile? > > Will Anyone confirm whether this is his problem or our problem? > > I can confirm. > > I'm using: > > + Mac OS X 10.2.6 (latest non-beta OS), > + December 2002 Developer Tools (latest non-beta dev tools). > + latest cvs update to HEAD (2003-08-16 T 16:55 UTC-8) > + clean build > > I can also confirm that his patch fixes the error. Can this patch fix the error? Index: curses.c =================================================================== RCS file: /cvs/ruby/src/ruby/ext/curses/curses.c,v retrieving revision 1.20 diff -u -2 -p -r1.20 curses.c --- curses.c 15 Aug 2003 03:01:52 -0000 1.20 +++ curses.c 17 Aug 2003 02:57:49 -0000 @@ -14,10 +14,9 @@ */ -#include "ruby.h" +#define _XOPEN_SOURCE_EXTENDED 1 -#include +#include "ruby.h" #include "rubyio.h" -#define _XOPEN_SOURCE_EXTENDED 1 #if defined(HAVE_NCURSES_H) # include -- Nobu Nakada