From: Arnaud Giersch Date: Thu, 18 Feb 2021 09:05:14 +0000 (+0100) Subject: Fix build error with non-const MINSIGSTKSZ. X-Git-Tag: v3.27~357 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d98472e07969685a4f8f69af3f748e4c6547bd17 Fix build error with non-const MINSIGSTKSZ. See https://github.com/catchorg/Catch2/issues/2178. --- diff --git a/src/include/catch.hpp b/src/include/catch.hpp index 6c1756a6ce..170f46ce2c 100644 --- a/src/include/catch.hpp +++ b/src/include/catch.hpp @@ -10732,7 +10732,8 @@ namespace Catch { // 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; + // Update: MINSIGSTKSZ is not const anymore with recent glibc + static constexpr std::size_t sigStackSize = 32768; static SignalDefs signalDefs[] = { { SIGINT, "SIGINT - Terminal interrupt signal" },