From: Bruno Haible Date: Wed, 20 Nov 2024 07:50:42 +0000 (+0100) Subject: c-stack: Avoid a busy-looping test on macOS. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ea58a72d4db3c4729e51de2633845ee381dd00b6;p=gnulib.git c-stack: Avoid a busy-looping test on macOS. * lib/c-stack.c: Undefine abort. --- diff --git a/ChangeLog b/ChangeLog index 80e8b85760..79e240c1fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-11-20 Bruno Haible + + c-stack: Avoid a busy-looping test on macOS. + * lib/c-stack.c: Undefine abort. + 2024-11-20 Bruno Haible tests: Silence some more -Wdeprecated-declarations warnings. diff --git a/lib/c-stack.c b/lib/c-stack.c index 0e14de9423..8db2417ab1 100644 --- a/lib/c-stack.c +++ b/lib/c-stack.c @@ -58,6 +58,10 @@ #include "gettext.h" #define _(msgid) gettext (msgid) +/* Here we need the original abort() function. (Printing a stack trace + from within a signal handler is not going to work in most cases anyway.) */ +#undef abort + #if HAVE_STACK_OVERFLOW_RECOVERY /* Storage for the alternate signal stack.