psx_fiber: SIGSTKSZ compile-time fallback for glibc >= 2.34

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Matthew Stanley
2026-06-12 05:19:17 -07:00
parent ca6f423edb
commit 45cc5c3887
+7
View File
@@ -47,6 +47,13 @@ void psx_fiber_destroy(psx_fiber_t fiber) { if (fiber) DeleteFiber((LPVOID)fiber
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <signal.h> /* SIGSTKSZ — minimum fiber stack floor */
/* glibc >= 2.34 no longer exposes SIGSTKSZ as a compile-time constant under
* _XOPEN_SOURCE; provide a portable fallback (used only as a stack floor). */
#ifndef SIGSTKSZ
# define SIGSTKSZ 16384
#endif
#if defined(__clang__) || defined(__GNUC__)
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"