diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-07 01:48:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-07 01:48:18 +0000 |
commit | 9b6a8da0ebc6b39d19b671c8f5e3cb4f8cb7a3f9 (patch) | |
tree | 0853e52c7bc760d20d90ce3d6c28dd6c7abb51eb /configure.in | |
parent | 8a0b7f6479655413a407606ea2b4fb275852287e (diff) | |
download | ruby-9b6a8da0ebc6b39d19b671c8f5e3cb4f8cb7a3f9.tar.gz |
configure.in: off_t for struct stat.st_size
* configure.in (struct stat.st_size): prefer off_t over int, long,
and so on. inspired by
http://www.opensource.apple.com/source/ruby/ruby-104/patches/config.h.ed
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 37e176e5fb..19c3f56fae 100644 --- a/configure.in +++ b/configure.in @@ -1705,10 +1705,11 @@ 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"], [], [@%:@include <sys/stat.h>]) +RUBY_CHECK_SIZEOF([struct stat.st_size], [off_t 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"], [], [@%:@include <sys/stat.h>]) + RUBY_CHECK_SIZEOF([struct stat.st_blocks], [off_t int long "long long"], [], [@%:@include <sys/stat.h>]) fi +RUBY_CHECK_SIZEOF([struct stat.st_ino], [long "long long"], [], [@%:@include <sys/stat.h>]) AC_CHECK_MEMBERS([struct stat.st_atim]) AC_CHECK_MEMBERS([struct stat.st_atimespec]) AC_CHECK_MEMBERS([struct stat.st_atimensec]) @@ -2506,8 +2507,6 @@ if test x"$ac_cv_func_gettimeofday" != xyes; then AC_MSG_ERROR(gettimeofday() must exist) fi -RUBY_CHECK_SIZEOF([struct stat.st_ino], [long "long long"], [], [@%:@include <sys/stat.h>]) - if test "$ac_cv_func_sysconf" = yes; then AC_DEFUN([RUBY_CHECK_SYSCONF], [dnl AC_CACHE_CHECK([whether _SC_$1 is supported], rb_cv_have_sc_[]m4_tolower($1), |