mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
438220f063
commit
e59f3054c3
1 changed files with 0 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue