music / rpms / et

Forked from rpms/et 2 years ago
Clone
Blob Blame History Raw
--- EternalTerminal-et-v6.1.4/external_imported/Catch2/single_include/catch2/catch.hpp.fix_minsigstksz	2021-03-13 19:16:53.000000000 -0800
+++ EternalTerminal-et-v6.1.4/external_imported/Catch2/single_include/catch2/catch.hpp	2021-03-16 17:45:40.115988071 -0700
@@ -10819,7 +10819,13 @@
 
     // 32kb for the alternate stack seems to be sufficient. However, this value
     // is experimentally determined, so that's not guaranteed.
+#ifdef _SC_SIGSTKSZ_SOURCE
+    // on glibc > 2.33 this is no longer constant, see
+    // http://sourceware-org.1504.n7.nabble.com/PATCH-sysconf-Add-SC-MINSIGSTKSZ-SC-SIGSTKSZ-BZ-20305-td650948.html
+    static constexpr std::size_t sigStackSize = 32768;
+#else
     static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
+#endif
 
     static SignalDefs signalDefs[] = {
         { SIGINT,  "SIGINT - Terminal interrupt signal" },