ruby-changes:69988
From: Naohisa <ko1@a...>
Date: Tue, 30 Nov 2021 16:43:12 +0900 (JST)
Subject: [ruby-changes:69988] e59f3054c3 (master): Delete #if line during checking madvise() on Solaris
https://git.ruby-lang.org/ruby.git/commit/?id=e59f3054c3 From e59f3054c308fc657224d2dde8d100816b82de84 Mon Sep 17 00:00:00 2001 From: Naohisa Goto <ngotogenome@g...> Date: Tue, 30 Nov 2021 14:23:07 +0900 Subject: Delete #if line during checking madvise() on Solaris The madvise() declaration should always be compiled on Solaris to check whether the declaration is good on the environment. For the purpose, the #if line is unnecessary. (There was also a trivial typo that the #if was not closed by #endif and the check always failed with preprocessor error.) --- configure.ac | 1 - 1 file changed, 1 deletion(-) diff --git a/configure.ac b/configure.ac index bb58fad0896..0f7c0d5477f 100644 --- a/configure.ac +++ b/configure.ac @@ -1110,7 +1110,6 @@ main() https://github.com/ruby/ruby/blob/trunk/configure.ac#L1110 AC_CHECK_TYPES([caddr_t],[],[],[@%:@include <sys/types.h>]) AC_CACHE_CHECK([whether madvise declaration is needed], rb_cv_madvice_prototype_using_caddr_t, [RUBY_WERROR_FLAG([AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - @%:@if defined(HAVE_CADDR_T) && (defined(MADV_FREE) || defined(MADV_DONTNEED)) @%:@include <sys/unistd.h> @%:@include <sys/mman.h> @%:@include <sys/types.h> -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/