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:
parent
ee4acb6ae6
commit
8ec3e6a102
@ -115,6 +115,12 @@ namespace Catch {
|
|||||||
|
|
||||||
#include <signal.h>
|
#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 {
|
namespace Catch {
|
||||||
|
|
||||||
struct SignalDefs {
|
struct SignalDefs {
|
||||||
|
Loading…
Reference in New Issue
Block a user