[#20036] Re: Roundoff problem with Float and Marshal — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

16 messages 2003/04/18
[#20045] Re: Roundoff problem with Float and Marshal — nobu.nakada@... 2003/04/20

なかだです。

[#20063] Re: Roundoff problem with Float and Marshal — matz@... (Yukihiro Matsumoto) 2003/04/22

まつもと ゆきひろです

[#20097] jcode.rb — akira yamada / やまだあきら <akira@...>

25 messages 2003/04/26
[#20098] Re: jcode.rb — matz@... (Yukihiro Matsumoto) 2003/04/27

まつもと ゆきひろです

[#20105] Re: jcode.rb — WATANABE Hirofumi <eban@...> 2003/04/28

わたなべです。

[#20108] Re: jcode.rb — matz@... (Yukihiro Matsumoto) 2003/04/28

まつもと ゆきひろです

[ruby-dev:20075] Re: failed to build ruby on HURD

From: WATANABE Hirofumi <eban@...>
Date: 2003-04-23 13:41:30 UTC
List: ruby-dev #20075
わたなべです。

akira yamada / やまだあきら <akira@ruby-lang.org> writes:

> >   * 1.8にする(解決済み)
> >   * 1.8のutil.cからruby_getcwd()関数を1.6のdir.cにコピー、
> >     my_getcwd()と名称変更
> 
> もう一つ、NOFILEについてもレポートされていました。
> これについては
> 
>   #if !defined NOFILE
>   # define NOFILE 64
>   #endif
> 
> を入れるとよいでしょうか。

単にMAXPATHLENとNOFILEが定義されてないだけのように思えるので、
この程度の修正で十分だと思います。

Index: dir.c
===================================================================
RCS file: /src/ruby/dir.c,v
retrieving revision 1.24.2.23
diff -u -p -r1.24.2.23 dir.c
--- dir.c	16 Dec 2002 07:36:14 -0000	1.24.2.23
+++ dir.c	23 Apr 2003 13:35:18 -0000
@@ -19,7 +19,8 @@
 
 #ifdef HAVE_SYS_PARAM_H
 # include <sys/param.h>
-#else
+#endif
+#ifndef MAXPATHLEN
 # define MAXPATHLEN 1024
 #endif
 #ifdef HAVE_UNISTD_H
Index: dln.c
===================================================================
RCS file: /src/ruby/dln.c,v
retrieving revision 1.15.2.20
diff -u -p -r1.15.2.20 dln.c
--- dln.c	26 Mar 2003 11:27:00 -0000	1.15.2.20
+++ dln.c	23 Apr 2003 13:35:19 -0000
@@ -56,7 +56,8 @@ void *xrealloc();
 
 #ifdef HAVE_SYS_PARAM_H
 # include <sys/param.h>
-#else
+#endif
+#ifndef MAXPATHLEN
 # define MAXPATHLEN 1024
 #endif
 
Index: file.c
===================================================================
RCS file: /src/ruby/file.c,v
retrieving revision 1.41.2.36
diff -u -p -r1.41.2.36 file.c
--- file.c	9 Jan 2003 08:32:26 -0000	1.41.2.36
+++ file.c	23 Apr 2003 13:35:19 -0000
@@ -33,7 +33,8 @@ int flock _((int, int));
 
 #ifdef HAVE_SYS_PARAM_H
 # include <sys/param.h>
-#else
+#endif
+#ifndef MAXPATHLEN
 # define MAXPATHLEN 1024
 #endif
 
Index: io.c
===================================================================
RCS file: /src/ruby/io.c,v
retrieving revision 1.69.2.37
diff -u -p -r1.69.2.37 io.c
--- io.c	21 Feb 2003 09:33:05 -0000	1.69.2.37
+++ io.c	23 Apr 2003 13:35:20 -0000
@@ -57,7 +57,9 @@ struct timeval {
 /* EMX has sys/param.h, but.. */
 #if defined(HAVE_SYS_PARAM_H) && !(defined(__EMX__) || defined(__HIUX_MPP__))
 # include <sys/param.h>
-#else
+#endif
+
+#if !defined NOFILE
 # define NOFILE 64
 #endif
 

In This Thread