From 3a43881b01ee1b88a004a6e192829c1bebaed19f Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 2 Jan 2025 11:49:24 -0500 Subject: [PATCH] only use _SC_SIGSTKSZ when it's defined --- src/lib/unixsig.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/unixsig.c b/src/lib/unixsig.c index b61f94553..01ad55b0e 100644 --- a/src/lib/unixsig.c +++ b/src/lib/unixsig.c @@ -222,7 +222,11 @@ int setup_signals(void* vnc, bool no_quit_sigs, bool no_winch_sigs, // to export ASAN_OPTIONS=use_sigaltstack=0, or just not fuck with the alternate // signal stack when built with ASAN. #ifndef USE_ASAN +#ifdef _SC_SIGSTKSZ long minstksz = sysconf(_SC_SIGSTKSZ); +#else + long minsktkz = 0; +#endif if(minstksz <= 0){ minstksz = SIGSTKSZ * 4; }