Fix compilation with glibc >= 2.34

Redefine SIGSTKSZ as a constant in order to still use it as a static
array size even with the newer versions of glibc where it is a function
call and not a constant any more.
This commit is contained in:
Vadim Zeitlin 2021-08-05 23:01:46 +02:00
parent ee4acb6ae6
commit 8ec3e6a102

View File

@ -115,6 +115,12 @@ namespace Catch {
#include <signal.h>
// Work around SIGSTKSZ not being a constant any more in glibc >= 2.34.
#ifdef __USE_DYNAMIC_STACK_SIZE
# undef SIGSTKSZ
# define SIGSTKSZ 32768
#endif // __USE_DYNAMIC_STACK_SIZE
namespace Catch {
struct SignalDefs {