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
@ -2727,7 +2727,10 @@ main(int argc, char *argv[])
|
|||||||
test x$rb_cv_fork_with_pthread = xyes || AC_DEFINE(CANNOT_FORK_WITH_PTHREAD)
|
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], [
|
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_CACHE_CHECK([PAGE_SIZE is defined], rb_cv_page_size,
|
||||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user