ruby-changes:18874
From: yugui <ko1@a...>
Date: Fri, 18 Feb 2011 19:44:30 +0900 (JST)
Subject: [ruby-changes:18874] Ruby:r30900 (ruby_1_9_2): merges r30699 and r30700 from trunk into ruby_1_9_2.
yugui 2011-02-18 19:43:45 +0900 (Fri, 18 Feb 2011) New Revision: 30900 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30900 Log: merges r30699 and r30700 from trunk into ruby_1_9_2. -- * configure.in: Add #include<sys/stat.h> when struct stat is tested. Otherwise, incomplete type dereference error will occur. -- We don't only need to change "struct stat.st_size" test, but also need to change "struct stat.st_blocks" test. Modified files: branches/ruby_1_9_2/ChangeLog branches/ruby_1_9_2/configure.in branches/ruby_1_9_2/version.h Index: ruby_1_9_2/configure.in =================================================================== --- ruby_1_9_2/configure.in (revision 30899) +++ ruby_1_9_2/configure.in (revision 30900) @@ -1044,9 +1044,9 @@ AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_BLOCKS AC_STRUCT_ST_RDEV -RUBY_CHECK_SIZEOF([struct stat.st_size], [int long "long long"]) +RUBY_CHECK_SIZEOF([struct stat.st_size], [int long "long long"], [], [@%:@include <sys/stat.h>]) if test "$ac_cv_member_struct_stat_st_blocks" = yes; then - RUBY_CHECK_SIZEOF([struct stat.st_blocks], [int long "long long"]) + RUBY_CHECK_SIZEOF([struct stat.st_blocks], [int long "long long"], [], [@%:@include <sys/stat.h>]) fi AC_CHECK_MEMBERS([struct stat.st_atim]) AC_CHECK_MEMBERS([struct stat.st_atimespec]) Index: ruby_1_9_2/ChangeLog =================================================================== --- ruby_1_9_2/ChangeLog (revision 30899) +++ ruby_1_9_2/ChangeLog (revision 30900) @@ -1,3 +1,8 @@ +Fri Jan 28 12:05:48 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * configure.in: Add #include<sys/stat.h> when struct stat is + tested. Otherwise, incomplete type dereference error will occur. + Fri Jan 28 02:37:18 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * re.c (rb_reg_raise): add GC guard to prevent intermediate Index: ruby_1_9_2/version.h =================================================================== --- ruby_1_9_2/version.h (revision 30899) +++ ruby_1_9_2/version.h (revision 30900) @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_PATCHLEVEL 177 +#define RUBY_PATCHLEVEL 178 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/