>From f20816f7d25b75c111defa27081b2b614c31dc52 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 29 Sep 2020 14:11:22 -0700 Subject: [PATCH 1/3] c-stack: fix libsigsegv typo Problem reported by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv to be used only on Solaris (exactly where it is not needed!). --- ChangeLog | 8 ++++++++ lib/c-stack.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e6c8079a8..76a76fbc4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2020-10-03 Paul Eggert + + c-stack: fix libsigsegv typo + Problem reported by Bruno Haible in: + https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html + * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv + to be used only on Solaris (exactly where it is not needed!). + 2020-10-03 Thien-Thi Nguyen MODULES.html.sh: Fix typo. diff --git a/lib/c-stack.c b/lib/c-stack.c index 742eb023e..80ebcbf00 100644 --- a/lib/c-stack.c +++ b/lib/c-stack.c @@ -66,7 +66,7 @@ typedef struct sigaltstack stack_t; /* Use libsigsegv only if needed; kernels like Solaris can detect stack overflow without the overhead of an external library. */ -#define USE_LIBSIGSEGV (HAVE_XSI_STACK_OVERFLOW_HEURISTIC && HAVE_LIBSIGSEGV) +#define USE_LIBSIGSEGV (!HAVE_XSI_STACK_OVERFLOW_HEURISTIC && HAVE_LIBSIGSEGV) #if USE_LIBSIGSEGV # include -- 2.25.1