[#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

Re: curses.c and Mac OS X

From: nobu.nokada@...
Date: 2003-08-17 02:58:54 UTC
List: ruby-core #1435
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 <stdio.h>
+#include "ruby.h"
 #include "rubyio.h"
 
-#define _XOPEN_SOURCE_EXTENDED 1
 #if defined(HAVE_NCURSES_H)
 # include <ncurses.h>


-- 
Nobu Nakada

In This Thread

Prev Next