summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/__call_atexit.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2013-05-07 18:24:14 +0000
committerJeff Johnston <jjohnstn@redhat.com>2013-05-07 18:24:14 +0000
commitc0e447afd0d4b671fb55948c4cdb4bee543d0b50 (patch)
treec415a2ce79812f0ed16fb22d2dea2369d3cd66c7 /newlib/libc/stdlib/__call_atexit.c
parent3483cbea7688e997a350e6b7cd65d3aae3b4484f (diff)
downloadcygnal-c0e447afd0d4b671fb55948c4cdb4bee543d0b50.tar.gz
cygnal-c0e447afd0d4b671fb55948c4cdb4bee543d0b50.tar.bz2
cygnal-c0e447afd0d4b671fb55948c4cdb4bee543d0b50.zip
2013-05-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/stdlib/__atexit.c (__atexit_lock): Declare. * libc/stdlib/__call_atexit.c (__atexit_lock): Define.
Diffstat (limited to 'newlib/libc/stdlib/__call_atexit.c')
-rw-r--r--newlib/libc/stdlib/__call_atexit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/newlib/libc/stdlib/__call_atexit.c b/newlib/libc/stdlib/__call_atexit.c
index 4c4506343..a21dd5733 100644
--- a/newlib/libc/stdlib/__call_atexit.c
+++ b/newlib/libc/stdlib/__call_atexit.c
@@ -11,9 +11,7 @@
/* Make this a weak reference to avoid pulling in free. */
void free(void *) _ATTRIBUTE((__weak__));
-#ifndef __SINGLE_THREAD__
-extern _LOCK_RECURSIVE_T __atexit_lock;
-#endif
+__LOCK_INIT_RECURSIVE(, __atexit_lock);
#ifdef _WANT_REGISTER_FINI