diy/diy-glibc2.34-drop-SIGSTKSZ.patch
Atri Bhattacharya 8f96ba228b Accepting request 926483 from home:badshah400:branches:science
Add diy-glibc2.34-drop-SIGSTKSZ.patch to compile against glibc >= 2.34 which no longer defines SIGSTKSZ as constant (see, for instance, gh#catchorg/Catch2#/2178).

OBS-URL: https://build.opensuse.org/request/show/926483
OBS-URL: https://build.opensuse.org/package/show/science/diy?expand=0&rev=7
2021-10-22 16:17:44 +00:00

23 lines
874 B
Diff

Index: diy-3.5.0/tests/catch.hpp
===================================================================
--- diy-3.5.0.orig/tests/catch.hpp
+++ diy-3.5.0/tests/catch.hpp
@@ -7252,7 +7252,7 @@ namespace Catch {
isSet = true;
stack_t sigStack;
sigStack.ss_sp = altStackMem;
- sigStack.ss_size = SIGSTKSZ;
+ sigStack.ss_size = 32768;
sigStack.ss_flags = 0;
sigaltstack(&sigStack, &oldSigStack);
struct sigaction sa = { };
@@ -7283,7 +7283,7 @@ namespace Catch {
bool FatalConditionHandler::isSet = false;
struct sigaction FatalConditionHandler::oldSigActions[sizeof(signalDefs)/sizeof(SignalDefs)] = {};
stack_t FatalConditionHandler::oldSigStack = {};
- char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
+ char FatalConditionHandler::altStackMem[32768] = {};
} // namespace Catch