Skip to content

Commit

Permalink
Fix build error with non-const MINSIGSTKSZ.
Browse files Browse the repository at this point in the history
see catchorg/Catch2#2178

Signed-off-by: Dennis Gilmore <[email protected]>
  • Loading branch information
ausil committed May 16, 2021
1 parent 4aab49f commit 581fef4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/catch2/catch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10819,7 +10819,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" },
Expand Down

0 comments on commit 581fef4

Please sign in to comment.