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:
David CARLIER 2021-12-02 16:40:05 +00:00 committed by Qi Wang
parent 3b3257a709
commit 113e8e68e1
2 changed files with 5 additions and 0 deletions

View File

@ -652,6 +652,7 @@ case "${host}" in
SYM_PREFIX="_" SYM_PREFIX="_"
;; ;;
*-*-freebsd*) *-*-freebsd*)
JE_APPEND_VS(CPPFLAGS, -D_BSD_SOURCE)
abi="elf" abi="elf"
AC_DEFINE([JEMALLOC_SYSCTL_VM_OVERCOMMIT], [ ]) AC_DEFINE([JEMALLOC_SYSCTL_VM_OVERCOMMIT], [ ])
force_lazy_lock="1" force_lazy_lock="1"

View File

@ -34,6 +34,10 @@
# include <pthread.h> # include <pthread.h>
# if defined(__FreeBSD__) || defined(__DragonFly__) # if defined(__FreeBSD__) || defined(__DragonFly__)
# include <pthread_np.h> # include <pthread_np.h>
# include <sched.h>
# if defined(__FreeBSD__)
# define cpu_set_t cpuset_t
# endif
# endif # endif
# include <signal.h> # include <signal.h>
# ifdef JEMALLOC_OS_UNFAIR_LOCK # ifdef JEMALLOC_OS_UNFAIR_LOCK