From cb1366b48f788e9a5655961d0ea73b0908f72223 Mon Sep 17 00:00:00 2001 From: kosaki Date: Fri, 28 Jan 2011 03:07:23 +0000 Subject: [PATCH] * configure.in: Add #include when struct stat is tested. Otherwise, incomplete type dereference error will occur. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ configure.in | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e596647dd6..6a22165df5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jan 28 12:05:48 2011 KOSAKI Motohiro + + * configure.in: Add #include when struct stat is + tested. Otherwise, incomplete type dereference error will occur. + Fri Jan 28 11:53:19 2011 KOSAKI Motohiro * configure.in: redundant variable names made strange conftest diff --git a/configure.in b/configure.in index 8e1bc3b6e4..25f1bbd726 100644 --- a/configure.in +++ b/configure.in @@ -1149,7 +1149,7 @@ RUBY_CHECK_PRINTF_PREFIX(ptrdiff_t, t) 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 ]) if test "$ac_cv_member_struct_stat_st_blocks" = yes; then RUBY_CHECK_SIZEOF([struct stat.st_blocks], [int long "long long"]) fi