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.)
This commit is contained in:
Naohisa Goto 2021-11-30 14:23:07 +09:00
Родитель 438220f063
Коммит e59f3054c3
1 изменённых файлов: 0 добавлений и 1 удалений

Просмотреть файл

@ -1110,7 +1110,6 @@ main()
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>