mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
only use _SC_SIGSTKSZ when it's defined
This commit is contained in:
parent
4adde8f63d
commit
3a43881b01
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user