]> Savannah Git Hosting - gnulib.git/commitdiff
c-stack: fix libsigsegv typo
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Sep 2020 21:11:22 +0000 (14:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 3 Oct 2020 20:02:39 +0000 (13:02 -0700)
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
lib/c-stack.c

index e6c8079a8d4356ddb4530fbb6afd5cb675c817fe..76a76fbc46001babd8edabbd7be9c5c443750d4b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <ttn@gnuvola.org>
 
        MODULES.html.sh: Fix typo.
index 742eb023e82e164e54c72754ed89774e83f16a3a..80ebcbf00fb3b54ad1a0be9e6507e4bdc13d9bd2 100644 (file)
@@ -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 <sigsegv.h>