Skip to content

Commit 154ea5e

Browse files
committed
Use config option
1 parent 455afc1 commit 154ea5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/ceval.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ _Py_InitializeRecursionLimits(PyThreadState *tstate)
360360
_tstate->c_stack_hard_limit = ((uintptr_t)low) + guarantee + PYOS_STACK_MARGIN_BYTES;
361361
_tstate->c_stack_soft_limit = _tstate->c_stack_hard_limit + PYOS_STACK_MARGIN_BYTES;
362362
#else
363-
# if defined(_GNU_SOURCE)
363+
# if defined(HAVE_PTHREAD_GETATTR_NP)
364364
size_t stack_size, guard_size;
365365
void *stack_addr;
366366
pthread_attr_t attr;

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -5147,7 +5147,7 @@ AC_CHECK_FUNCS([ \
51475147
posix_spawn_file_actions_addclosefrom_np \
51485148
pread preadv preadv2 process_vm_readv \
51495149
pthread_cond_timedwait_relative_np pthread_condattr_setclock pthread_init \
5150-
pthread_kill pthread_getname_np pthread_setname_np \
5150+
pthread_kill pthread_getname_np pthread_setname_np pthread_getattr_np \
51515151
ptsname ptsname_r pwrite pwritev pwritev2 readlink readlinkat readv realpath renameat \
51525152
rtpSpawn sched_get_priority_max sched_rr_get_interval sched_setaffinity \
51535153
sched_setparam sched_setscheduler sem_clockwait sem_getvalue sem_open \

0 commit comments

Comments
 (0)