summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e49c128a45..dd553b22a4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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([[