[#1378] differences between Module and Class ? — Mathieu Bouchard <matju@...>

25 messages 2003/08/11
[#1387] Re: differences between Module and Class ? — matz@... (Yukihiro Matsumoto) 2003/08/12

Hi,

[#1442] Re: differences between Module and Class ? — Mathieu Bouchard <matju@...> 2003/08/21

[#1406] _id2ref bug? — Ryan Pavlik <rpav@...>

While debugging some caching code, I've come across a segfault related

22 messages 2003/08/14
[#1407] Re: _id2ref bug? — matz@... (Yukihiro Matsumoto) 2003/08/14

Hi,

[#1413] Re: _id2ref bug? (REPRODUCED, short) — Ryan Pavlik <rpav@...> 2003/08/14

On Fri, 15 Aug 2003 01:57:18 +0900

curses.c and Mac OS X

From: Elliott Hughes <ehughes@...>
Date: 2003-08-16 20:24:00 UTC
List: ruby-core #1432
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
*********************************************************************


In This Thread

Prev Next