[patch] nptl: remove unneeded libc-lock.h include

Carmelo AMOROSO carmelo.amoroso at st.com
Tue Apr 20 09:37:41 UTC 2010


On 4/20/2010 10:59 AM, Timo Teräs wrote:
> I semi-accidentally added include for libc-lock.h because the intention
> was to use locking macroes from there. However, we ended up using using
> the weak alias stuff. This is additionally good since now this can result
> in compile errors like:
> 
> In file included from /toolchain/include/bits/uClibc_mutex.h:16,
>                 from /toolchain/include/bits/uClibc_stdio.h:107,
>                 from /toolchain/include/stdio.h:72,
>                 from
> /work/freetype-2.3.11/include/freetype/config/ftstdlib.h:100,
>                 from ./builds/unix/ftconfig.h:43,
>                 from builds/unix/ftsystem.c:21:
> /toolchain/include/bits/libc-lock.h:309: error: expected '=', ',',
> ';', 'asm' or '__attribute__' before 'void'
> 
> Remove the unneeded include causing breakage.
> 
> Reported-by: Kevin Day <thekevinday at gmail.com>
> Signed-off-by: Timo Teräs <timo.teras at iki.fi>
> 
> diff --git a/libc/sysdeps/linux/common/bits/uClibc_mutex.h
> b/libc/sysdeps/linux
> /common/bits/uClibc_mutex.h
> index 02bcc72..6d004bb 100644
> --- a/libc/sysdeps/linux/common/bits/uClibc_mutex.h
> +++ b/libc/sysdeps/linux/common/bits/uClibc_mutex.h
> @@ -13,7 +13,6 @@
> #ifdef __UCLIBC_HAS_THREADS__
> 
> #include <pthread.h>
> -#include <bits/libc-lock.h>
> #include <bits/uClibc_pthread.h>
> 
> #define __uclibc_maybe_call(FUNC, ARGS) \
> 

Hi TImo,
I guess this is required for STDIO_FUTEXES, or am I wrong ?

Carmelo

_______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc
> 



More information about the uClibc mailing list