From 6bb69e422328fee8394df278fbd5076f6552ee1e Mon Sep 17 00:00:00 2001 From: Robert Griebl Date: Tue, 5 Oct 2021 22:53:42 +0200 Subject: [PATCH] SIGSTKSZ is not a constexpr anymore in glibc 2.34+ https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=85e84fe53699fe9e392edffa993612ce08b2954a;hb=HEAD#l12 Change-Id: I4f2156b5902d2bdd551c4f0f0140651561e56e2d Pick-to: 6.2 5.15 Reviewed-by: Dominik Holland --- src/common-lib/unixsignalhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common-lib/unixsignalhandler.cpp b/src/common-lib/unixsignalhandler.cpp index ee83cd89370..3878dddf564 100644 --- a/src/common-lib/unixsignalhandler.cpp +++ b/src/common-lib/unixsignalhandler.cpp @@ -66,7 +66,7 @@ UnixSignalHandler::UnixSignalHandler() { // Setup alternate signal stack (to get backtrace for stack overflow) // Canonical size might not be suffcient to get QML backtrace, so we double it - constexpr size_t stackSize = SIGSTKSZ * 2; + size_t stackSize = SIGSTKSZ * 2; stack_t sigstack; // valgrind will report this as leaked: nothing we can do about it sigstack.ss_sp = malloc_valgrind_ignore(stackSize); -- 2.31.1