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=3b9d432e3ff1742b592ef37c7e10286f612e8786;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 56a3a07ff9..9897aad51b 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-19 Pádraig Brady unicodeio: avoid iconv issues for most ASCII characters 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.