зеркало из https://github.com/github/ruby.git
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:
Родитель
438220f063
Коммит
e59f3054c3
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче