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

ruby-changes:35743

From: nobu <ko1@a...>
Date: Tue, 7 Oct 2014 10:48:23 +0900 (JST)
Subject: [ruby-changes:35743] nobu:r47825 (trunk): configure.in: off_t for struct stat.st_size

nobu	2014-10-07 10:48:18 +0900 (Tue, 07 Oct 2014)

  New Revision: 47825

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

  Log:
    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

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 47824)
+++ configure.in	(revision 47825)
@@ -1705,10 +1705,11 @@ RUBY_CHECK_PRINTF_PREFIX(ptrdiff_t, t) https://github.com/ruby/ruby/blob/trunk/configure.in#L1705
 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" != x https://github.com/ruby/ruby/blob/trunk/configure.in#L2507
     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),
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47824)
+++ ChangeLog	(revision 47825)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Oct  7 10:48:17 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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@r...>
 
 	* configure.in (RUBY_UNIVERSAL_ARCH): fix missing quoting

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

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