summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/abort.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-06 03:33:06 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-06 03:33:06 +0000
commitbd7bace793536f027790396d6358c14299e8595b (patch)
treedcc993baefecea2b27019336c4502e61d49b98c5 /libc/stdlib/abort.c
parent7608c85140162446c3830421eb94ae42a1bbb893 (diff)
downloaduClibc-alpine-bd7bace793536f027790396d6358c14299e8595b.tar.bz2
uClibc-alpine-bd7bace793536f027790396d6358c14299e8595b.tar.xz
Big merge from trunk. Stop the madness!
Diffstat (limited to 'libc/stdlib/abort.c')
-rw-r--r--libc/stdlib/abort.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libc/stdlib/abort.c b/libc/stdlib/abort.c
index 07e4a208c..83a052abe 100644
--- a/libc/stdlib/abort.c
+++ b/libc/stdlib/abort.c
@@ -18,6 +18,8 @@ Cambridge, MA 02139, USA. */
/* Hacked up for uClibc by Erik Andersen */
+#define sigaction __sigaction_internal
+
#define _GNU_SOURCE
#include <features.h>
#include <signal.h>
@@ -73,12 +75,9 @@ static int been_there_done_that = 0;
#ifdef __UCLIBC_HAS_THREADS__
# include <pthread.h>
static pthread_mutex_t mylock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
-# define LOCK __pthread_mutex_lock(&mylock)
-# define UNLOCK __pthread_mutex_unlock(&mylock)
-#else
-# define LOCK
-# define UNLOCK
#endif
+#define LOCK __pthread_mutex_lock(&mylock)
+#define UNLOCK __pthread_mutex_unlock(&mylock)
extern int __raise (int __sig) __THROW attribute_hidden;