From 48dad88d3f8a2175b9352ee36857b4cf36b6463d Mon Sep 17 00:00:00 2001 From: Furkan Onder Date: Sun, 23 Mar 2025 16:07:34 +0300 Subject: [PATCH] Fix recursive limit assertions on NetBSD for posix_spawn --- Python/ceval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/ceval.c b/Python/ceval.c index 363f263ad2a083..8fed30a06e0cc4 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -444,7 +444,7 @@ _Py_InitializeRecursionLimits(PyThreadState *tstate) _tstate->c_stack_soft_limit = _tstate->c_stack_hard_limit + PYOS_STACK_MARGIN_BYTES; #else uintptr_t here_addr = _Py_get_machine_stack_pointer(); -# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX) +# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX) && !defined(__NetBSD__) size_t stack_size, guard_size; void *stack_addr; pthread_attr_t attr;