Fix compilation with jemalloc on macos
On darwin we avoid including sys/user.h to avoid a conflict. Previously we still ended up with PAGE_SIZE being defined because the headers for system malloc define it. However, when compiling with jemalloc nothing would define PAGE_SIZE. This commit changes configure.ac so that we never use the PAGE_SIZE constant on darwin and to always use the sysconf fallback.
This commit is contained in:
parent
2420119f47
commit
0aa4ca1477
Notes:
git
2021-05-14 00:15:04 +09:00
@ -2733,7 +2733,7 @@ main(int argc, char *argv[])
|
||||
])
|
||||
|
||||
AS_CASE([$target_os],
|
||||
[darwin*], [ac_cv_header_sys_user_h=yes], dnl LIST_HEAD conflicts with sys/queue.h
|
||||
[darwin*], [ac_cv_header_sys_user_h=no], 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], [
|
||||
|
Loading…
x
Reference in New Issue
Block a user