[前][次][番号順一覧][スレッド一覧]

ruby-changes:18674

From: kosaki <ko1@a...>
Date: Fri, 28 Jan 2011 12:07:31 +0900 (JST)
Subject: [ruby-changes:18674] Ruby:r30699 (trunk): * configure.in: Add #include<sys/stat.h> when struct stat is

kosaki	2011-01-28 12:07:23 +0900 (Fri, 28 Jan 2011)

  New Revision: 30699

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30699

  Log:
    * configure.in: Add #include<sys/stat.h> when struct stat is
      tested. Otherwise, incomplete type dereference error will occur.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 30698)
+++ configure.in	(revision 30699)
@@ -1149,7 +1149,7 @@
 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"])
 fi
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30698)
+++ ChangeLog	(revision 30699)
@@ -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 11:53:19 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* configure.in: redundant variable names made strange conftest

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]