File sigstksz.diff of Package osmium-tool

diff -urN osmium-tool-1.13.2.orig/test/include/catch.hpp osmium-tool-1.13.2/test/include/catch.hpp
--- osmium-tool-1.13.2.orig/test/include/catch.hpp	2021-10-05 11:50:26.000000000 +0200
+++ osmium-tool-1.13.2/test/include/catch.hpp	2021-10-17 22:03:21.419963114 +0200
@@ -2140,6 +2140,7 @@
     // If we can use inline assembler, do it because this allows us to break
     // directly at the location of the failing check instead of breaking inside
     // raise() called from it, i.e. one stack frame below.
+    #define _SIGSTKSZ      8192
     #if defined(__GNUC__) && (defined(__i386) || defined(__x86_64))
         #define CATCH_TRAP() asm volatile ("int $3") /* NOLINT */
     #else // Fall back to the generic way.
@@ -6543,7 +6544,7 @@
         static bool isSet;
         static struct sigaction oldSigActions [sizeof(signalDefs)/sizeof(SignalDefs)];
         static stack_t oldSigStack;
-        static char altStackMem[SIGSTKSZ];
+        static char altStackMem[_SIGSTKSZ];
 
         static void handleSignal( int sig ) {
             std::string name = "<unknown signal>";
@@ -6563,7 +6564,7 @@
             isSet = true;
             stack_t sigStack;
             sigStack.ss_sp = altStackMem;
-            sigStack.ss_size = SIGSTKSZ;
+            sigStack.ss_size = _SIGSTKSZ;
             sigStack.ss_flags = 0;
             sigaltstack(&sigStack, &oldSigStack);
             struct sigaction sa = { 0 };
@@ -6594,7 +6595,7 @@
     bool FatalConditionHandler::isSet = false;
     struct sigaction FatalConditionHandler::oldSigActions[sizeof(signalDefs)/sizeof(SignalDefs)] = {};
     stack_t FatalConditionHandler::oldSigStack = {};
-    char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
+    char FatalConditionHandler::altStackMem[_SIGSTKSZ] = {};
 
 } // namespace Catch
 
openSUSE Build Service is sponsored by