From e59f3054c308fc657224d2dde8d100816b82de84 Mon Sep 17 00:00:00 2001 From: Naohisa Goto Date: Tue, 30 Nov 2021 14:23:07 +0900 Subject: [PATCH] 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 bb58fad089..0f7c0d5477 100644 --- a/configure.ac +++ b/configure.ac @@ -1110,7 +1110,6 @@ main() AC_CHECK_TYPES([caddr_t],[],[],[@%:@include ]) 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 @%:@include @%:@include