From d5b369d20cdf2c2843da4e6500da82c1dff9156a Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Wed, 10 Jan 2007 22:03:34 +0000 Subject: Fix SEGV for static builds in exit() path. Leave the now obsolete libc/misc/pthread dir in for now. --- libc/sysdeps/linux/common/bits/uClibc_mutex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/bits/uClibc_mutex.h') diff --git a/libc/sysdeps/linux/common/bits/uClibc_mutex.h b/libc/sysdeps/linux/common/bits/uClibc_mutex.h index b202a6bd2..14aeb9c80 100644 --- a/libc/sysdeps/linux/common/bits/uClibc_mutex.h +++ b/libc/sysdeps/linux/common/bits/uClibc_mutex.h @@ -36,7 +36,7 @@ struct _pthread_cleanup_buffer __infunc_pthread_cleanup_buffer; \ if (C) { \ _pthread_cleanup_push_defer(&__infunc_pthread_cleanup_buffer, \ - __uclibc_mutex_unlock, \ + (void (*) (void *))__pthread_mutex_unlock, \ &(M)); \ __pthread_mutex_lock(&(M)); \ } \ -- cgit v1.2.3