Fix the gettid() detection caught by @mrluanma .

This commit is contained in:
Qi Wang 2025-01-21 15:06:02 -08:00
parent 52fa9577ba
commit 7ef4d170b3
2 changed files with 4 additions and 1 deletions

View file

@ -411,6 +411,9 @@
/* Adaptive mutex support in pthreads. */
#undef JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP
/* gettid() support */
#undef JEMALLOC_HAVE_GETTID
/* GNU specific sched_getcpu support */
#undef JEMALLOC_HAVE_SCHED_GETCPU

View file

@ -4,7 +4,7 @@
#include "jemalloc/internal/malloc_io.h"
#include "jemalloc/internal/prof_sys.h"
#if defined (__linux__) && defined(JE_HAVE_GETTID)
#if defined (__linux__) && defined(JEMALLOC_HAVE_GETTID)
#include <errno.h>
#include <fcntl.h>