File signal.diff of Package libprotozero

diff -urN protozero-1.7.0.orig/test/catch/catch.hpp protozero-1.7.0/test/catch/catch.hpp
--- protozero-1.7.0.orig/test/catch/catch.hpp	2020-06-08 09:25:41.000000000 +0200
+++ protozero-1.7.0/test/catch/catch.hpp	2021-10-16 11:59:48.250559276 +0200
@@ -7926,6 +7926,9 @@
     // 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 _MINSIGSTKSZ        2048
+
     #if defined(__GNUC__) && (defined(__i386) || defined(__x86_64))
         #define CATCH_TRAP() asm volatile ("int $3") /* NOLINT */
     #else // Fall back to the generic way.
@@ -10788,7 +10791,7 @@
 
     // 32kb for the alternate stack seems to be sufficient. However, this value
     // is experimentally determined, so that's not guaranteed.
-    static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
+    static constexpr std::size_t sigStackSize = 32768 >= _MINSIGSTKSZ ? 32768 : _MINSIGSTKSZ;
 
     static SignalDefs signalDefs[] = {
         { SIGINT,  "SIGINT - Terminal interrupt signal" },
openSUSE Build Service is sponsored by