mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Get rid of including sys/user.h on macOS
LIST_HEAD in ccan/list conflicts with sys/queue.h. ``` ./ccan/list/list.h:75:9: warning: 'LIST_HEAD' macro redefined [-Wmacro-redefined] ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/queue.h:465:9: note: previous definition is here ^ ```
This commit is contained in:
parent
b655a3fa5b
commit
921d8ac99d
1 changed files with 4 additions and 1 deletions
|
@ -2727,7 +2727,10 @@ main(int argc, char *argv[])
|
|||
test x$rb_cv_fork_with_pthread = xyes || AC_DEFINE(CANNOT_FORK_WITH_PTHREAD)
|
||||
])
|
||||
|
||||
AC_CHECK_HEADERS([sys/user.h])
|
||||
AS_CASE([$target_os],
|
||||
[darwin*], [ac_cv_header_sys_user_h=yes], dnl LIST_HEAD conflicts with sys/queue.h
|
||||
[AC_CHECK_HEADERS([sys/user.h])]
|
||||
)
|
||||
AS_IF([test "x$ac_cv_func_mmap:$ac_cv_header_sys_user_h" = xyes:yes], [
|
||||
AC_CACHE_CHECK([PAGE_SIZE is defined], rb_cv_page_size,
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
|
|
Loading…
Reference in a new issue