From: Markus Walser Date: 2003-07-25T15:49:46+09:00 Subject: Fix for Bug 1058 --Boundary-00=_GMNI/tmUqySQV+P Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, The attached patch fixes Bug 1058. Please note that on 64bit architecture applies: sizeof(0)=4 sizeof(NULL)=8 Best regards, Markus --Boundary-00=_GMNI/tmUqySQV+P Content-Type: text/x-diff; charset="us-ascii"; name="ia64-fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ia64-fix.patch" diff -r -Nup ruby/ext/etc/etc.c ruby.ia64-fix/ext/etc/etc.c --- ruby/ext/etc/etc.c 2000-05-24 06:34:14.000000000 +0200 +++ ruby.ia64-fix/ext/etc/etc.c 2003-07-24 19:44:56.000000000 +0200 @@ -266,11 +266,11 @@ Init_etc() #ifdef PW_EXPIRE "expire", #endif - 0); + NULL); rb_global_variable(&sPasswd); #ifdef HAVE_GETGRENT - sGroup = rb_struct_define("Group", "name", "passwd", "gid", "mem", 0); + sGroup = rb_struct_define("Group", "name", "passwd", "gid", "mem", NULL); rb_global_variable(&sGroup); #endif } diff -r -Nup ruby/time.c ruby.ia64-fix/time.c --- ruby/time.c 2003-02-04 07:52:30.000000000 +0100 +++ ruby.ia64-fix/time.c 2003-07-24 19:46:32.000000000 +0200 @@ -1188,7 +1188,7 @@ Init_Time() rb_define_method(rb_cTime, "strftime", time_strftime, 1); #if defined(HAVE_TIMES) || defined(NT) - S_Tms = rb_struct_define("Tms", "utime", "stime", "cutime", "cstime", 0); + S_Tms = rb_struct_define("Tms", "utime", "stime", "cutime", "cstime", NULL); #endif /* methods for marshaling */ --Boundary-00=_GMNI/tmUqySQV+P--