ruby-changes:64114
From: Nobuyoshi <ko1@a...>
Date: Sat, 12 Dec 2020 20:20:47 +0900 (JST)
Subject: [ruby-changes:64114] 4d2ad8d737 (master): Removed obsolete autoconf checks
https://git.ruby-lang.org/ruby.git/commit/?id=4d2ad8d737 From 4d2ad8d737c55c3efd4c75131687dd1c8db7441b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 12 Dec 2020 17:20:58 +0900 Subject: Removed obsolete autoconf checks Use regular `AC_CHECK_MEMBERS` instead of: * `AC_STRUCT_ST_BLKSIZE` * `AC_STRUCT_ST_BLOCKS` * `AC_STRUCT_ST_RDEV` diff --git a/configure.ac b/configure.ac index 1e03104..c249326 100644 --- a/configure.ac +++ b/configure.ac @@ -1641,9 +1641,9 @@ RUBY_CHECK_SIZEOF(size_t, [int long void*], [], [@%:@include <sys/types.h>]) https://github.com/ruby/ruby/blob/trunk/configure.ac#L1641 RUBY_CHECK_SIZEOF(ptrdiff_t, size_t, [], [@%:@include <stddef.h>]) RUBY_CHECK_PRINTF_PREFIX(size_t, z) RUBY_CHECK_PRINTF_PREFIX(ptrdiff_t, t) -AC_STRUCT_ST_BLKSIZE -AC_STRUCT_ST_BLOCKS -AC_STRUCT_ST_RDEV +AC_CHECK_MEMBERS([struct stat.st_blksize]) +AC_CHECK_MEMBERS([struct stat.st_blocks]) +AC_CHECK_MEMBERS([struct stat.st_rdev]) RUBY_CHECK_SIZEOF([struct stat.st_size], [off_t int long "long long"], [], [@%:@include <sys/stat.h>]) AS_IF([test "$ac_cv_member_struct_stat_st_blocks" = yes], [ RUBY_CHECK_SIZEOF([struct stat.st_blocks], [off_t int long "long long"], [], [@%:@include <sys/stat.h>]) diff --git a/missing/fileblocks.c b/missing/fileblocks.c deleted file mode 100644 index ccb8d66..0000000 --- a/missing/fileblocks.c +++ /dev/null @@ -1 +0,0 @@ -/* dummy for autoconf */ diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 85c6e9a..2f146a8 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -725,7 +725,6 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L725 #define rb_gid_t int #define rb_uid_t int #define HAVE_STRUCT_STAT_ST_RDEV 1 -#define HAVE_ST_RDEV 1 #define HAVE_STRUCT_TIMEVAL 1 !if $(MSC_VER) >= 1900 #define HAVE_STRUCT_TIMESPEC -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/