This nasty patch allows the current CVS version of Ruby to build on Mac OS X. Without it, you get: compiling curses gcc -fno-common -g -O2 -pipe -I. -I/Users/elliotth/Projects/ruby/ruby -I/Users/elliotth/Projects/ruby/ruby -I/Users/elliotth/Projects/ruby/ruby/ext/curses -DHAVE_NCURSES_H -DHAVE_ISENDWIN -DHAVE_UNGETCH -DHAVE_BEEP -DHAVE_GETNSTR -DHAVE_WGETNSTR -DHAVE_DOUPDATE -DHAVE_FLASH -DHAVE_DELETELN -DHAVE_WDELETELN -DHAVE_KEYPAD -DHAVE_KEYNAME -DHAVE_INIT_COLOR -DHAVE_WRESIZE -DHAVE_RESIZETERM -c curses.c In file included from curses.c:23: /usr/include/ncurses.h:282: error: conflicting types for `wchar_t' /usr/include/stdlib.h:77: error: previous declaration of `wchar_t' make[1]: *** [curses.o] Error 1 make: *** [all] Error 1 --elliott Index: ext/curses/curses.c =================================================================== RCS file: /src/ruby/ext/curses/curses.c,v retrieving revision 1.20 diff -u -r1.20 curses.c --- ext/curses/curses.c 15 Aug 2003 03:01:52 -0000 1.20 +++ ext/curses/curses.c 16 Aug 2003 20:21:47 -0000 @@ -20,6 +20,9 @@ #define _XOPEN_SOURCE_EXTENDED 1 #if defined(HAVE_NCURSES_H) +# if defined(__APPLE__) && defined(_BSD_WCHAR_T_) && !defined(_WCHAR_T) +# define _WCHAR_T +# endif # include <ncurses.h> #elif defined(HAVE_NCURSES_CURSES_H) # include <ncurses/curses.h> ********************************************************************* This e-mail and any attachment is confidential. It may only be read, copied and used by the intended recipient(s). If you are not the intended recipient(s), you may not copy, use, distribute, forward, store or disclose this e-mail or any attachment. If you are not the intended recipient(s) or have otherwise received this e-mail in error, you should destroy it and any attachment and notify the sender by reply e-mail or send a message to sysadmin / bluearc.com *********************************************************************