mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-24 16:13:38 +03:00
fix build for non linux/BSD platforms.
This commit is contained in:
parent
3de0c24859
commit
4c95c953e2
3 changed files with 15 additions and 3 deletions
|
|
@ -2024,6 +2024,15 @@ if test "x$have_sched_setaffinity" = "x1" ; then
|
|||
AC_DEFINE([JEMALLOC_HAVE_SCHED_SETAFFINITY], [ ], [ ])
|
||||
fi
|
||||
|
||||
dnl Check if the pthread_setaffinity_np function exists.
|
||||
AC_CHECK_FUNC([pthread_setaffinity_np],
|
||||
[have_pthread_setaffinity_np="1"],
|
||||
[have_pthread_setaffinity_np="0"]
|
||||
)
|
||||
if test "x$have_pthread_setaffinity_np" = "x1" ; then
|
||||
AC_DEFINE([JEMALLOC_HAVE_PTHREAD_SETAFFINITY_NP], [ ], [ ])
|
||||
fi
|
||||
|
||||
dnl Check if the Solaris/BSD issetugid function exists.
|
||||
AC_CHECK_FUNC([issetugid],
|
||||
[have_issetugid="1"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue