mescc: Mes C Library: abort: Avoid __raise for TinyCC.

* lib/stdlib/abort.c: Use "raise" instead of __raise.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-11-22 20:21:13 +01:00
parent b6cadb876f
commit 6a9e9838f0
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
2 changed files with 2 additions and 3 deletions

View file

@ -239,6 +239,7 @@ typedef struct ucontext
#endif // !__i386__
int kill (pid_t pid, int signum);
int raise (int);
int sigaction (int signum, struct sigaction const *act, struct sigaction *oldact);
int sigaddset (sigset_t * set, int signum);
#if __MESC__

View file

@ -20,12 +20,10 @@
#include <signal.h>
int __raise(int);
void
abort (void)
{
if (__raise(SIGABRT) < 0) { /* could not raise SIGABRT */
if (raise (SIGABRT) < 0) { /* could not raise SIGABRT */
/* Fail in any way possible */
unsigned char* x = (unsigned char*) 0;
*x = 2;