зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
8a0b7f6479
Коммит
9b6a8da0eb
|
@ -1,3 +1,9 @@
|
||||||
|
Tue Oct 7 10:48:17 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
Tue Oct 7 10:37:39 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Oct 7 10:37:39 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (RUBY_UNIVERSAL_ARCH): fix missing quoting
|
* configure.in (RUBY_UNIVERSAL_ARCH): fix missing quoting
|
||||||
|
|
|
@ -1705,10 +1705,11 @@ RUBY_CHECK_PRINTF_PREFIX(ptrdiff_t, t)
|
||||||
AC_STRUCT_ST_BLKSIZE
|
AC_STRUCT_ST_BLKSIZE
|
||||||
AC_STRUCT_ST_BLOCKS
|
AC_STRUCT_ST_BLOCKS
|
||||||
AC_STRUCT_ST_RDEV
|
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
|
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
|
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_atim])
|
||||||
AC_CHECK_MEMBERS([struct stat.st_atimespec])
|
AC_CHECK_MEMBERS([struct stat.st_atimespec])
|
||||||
AC_CHECK_MEMBERS([struct stat.st_atimensec])
|
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)
|
AC_MSG_ERROR(gettimeofday() must exist)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RUBY_CHECK_SIZEOF([struct stat.st_ino], [long "long long"], [], [@%:@include <sys/stat.h>])
|
|
||||||
|
|
||||||
if test "$ac_cv_func_sysconf" = yes; then
|
if test "$ac_cv_func_sysconf" = yes; then
|
||||||
AC_DEFUN([RUBY_CHECK_SYSCONF], [dnl
|
AC_DEFUN([RUBY_CHECK_SYSCONF], [dnl
|
||||||
AC_CACHE_CHECK([whether _SC_$1 is supported], rb_cv_have_sc_[]m4_tolower($1),
|
AC_CACHE_CHECK([whether _SC_$1 is supported], rb_cv_have_sc_[]m4_tolower($1),
|
||||||
|
|
Загрузка…
Ссылка в новой задаче