summaryrefslogtreecommitdiff
path: root/libc/stdlib/atexit.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-12 10:57:22 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-12 10:57:22 +0000
commite83faee37db132d765f3064227677150f206496e (patch)
treea774062ede03deb80f92308427715397ce28c1a9 /libc/stdlib/atexit.c
parentb7d40e7d57fc189bb32beb0d78175b00c23cbc04 (diff)
Doh! missed a spot.
-Erik
Diffstat (limited to 'libc/stdlib/atexit.c')
-rw-r--r--libc/stdlib/atexit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/stdlib/atexit.c b/libc/stdlib/atexit.c
index a877c5a1f..e4b6620e2 100644
--- a/libc/stdlib/atexit.c
+++ b/libc/stdlib/atexit.c
@@ -168,7 +168,9 @@ void __exit_handler(int status)
#ifdef L_exit
extern void weak_function _stdio_term(void);
void (*__exit_cleanup) (int) = 0;
+#ifdef __UCLIBC_HAS_THREADS__
pthread_mutex_t mylock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
+#endif
/*
* Normal program termination