mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
freebsd 14 build fix proposal.
seems to have introduced finally more linux api cpu affinity (sched_* family) compatibility detected at configure time thus adjusting accordingly.
This commit is contained in:
parent
3b3257a709
commit
113e8e68e1
2 changed files with 5 additions and 0 deletions
|
|
@ -652,6 +652,7 @@ case "${host}" in
|
|||
SYM_PREFIX="_"
|
||||
;;
|
||||
*-*-freebsd*)
|
||||
JE_APPEND_VS(CPPFLAGS, -D_BSD_SOURCE)
|
||||
abi="elf"
|
||||
AC_DEFINE([JEMALLOC_SYSCTL_VM_OVERCOMMIT], [ ])
|
||||
force_lazy_lock="1"
|
||||
|
|
|
|||
|
|
@ -34,6 +34,10 @@
|
|||
# include <pthread.h>
|
||||
# if defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
# include <pthread_np.h>
|
||||
# include <sched.h>
|
||||
# if defined(__FreeBSD__)
|
||||
# define cpu_set_t cpuset_t
|
||||
# endif
|
||||
# endif
|
||||
# include <signal.h>
|
||||
# ifdef JEMALLOC_OS_UNFAIR_LOCK
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue