mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-24 08:03:32 +03:00
Use a stub replacement and disable dss when sbrk is not supported
This commit is contained in:
parent
5ff709c264
commit
83c324acd8
3 changed files with 22 additions and 0 deletions
|
|
@ -678,6 +678,14 @@ fi
|
|||
],
|
||||
[enable_dss="0"]
|
||||
)
|
||||
dnl Check whether the BSD/SUSv1 sbrk() exists. If not, disable DSS support.
|
||||
AC_CHECK_FUNC([sbrk], [have_sbrk="1"], [have_sbrk="0"])
|
||||
if test "x$have_sbrk" = "x1" ; then
|
||||
AC_DEFINE([JEMALLOC_HAVE_SBRK], [ ])
|
||||
else
|
||||
enable_dss="0"
|
||||
fi
|
||||
|
||||
if test "x$enable_dss" = "x1" ; then
|
||||
AC_DEFINE([JEMALLOC_DSS], [ ])
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue