From 37e2fdd2686ff1ab6eb655e13ab8723da626e72c Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 29 Apr 1998 05:02:34 +0000 Subject: [PATCH] (abort): Omit this definition, if NO_ABORT. End by calling exit, to avoid warning. --- src/emacs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/emacs.c b/src/emacs.c index 82d105a4e24..18cf9a7c2a5 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -267,11 +267,13 @@ memory_warning_signal (sig) so that GDB can return from a breakpoint here. MSDOS has its own definition on msdos.c */ -#ifndef DOS_NT +#if ! defined (DOS_NT) && ! defined (NO_ABORT) void abort () { kill (getpid (), SIGABRT); + /* This shouldn't be executed, but it prevents a warning. */ + exit (1); } #endif -- 2.39.2