[patch] Fixes for non-NPTL threads build

Abdoulaye Walsimou Gaye awg at embtoolkit.org
Thu Jun 17 15:29:31 UTC 2010


On 06/14/2010 01:34 PM, Andrew Stubbs wrote:
> Here's a corrected patch. Some of it got into my other SH4AL patch by
> mistake.
>
> This patch fixes some issues building SH uclibc with linuxthreads,
> that seem to have been introduced by the NPTL changes.
>
> Signed-off-by: Andrew Stubbs <ams at codesourcery.com>
>
>
> ---
>  .../libc/misc/internals/__uClibc_main.c            |    3 +++
>  .../libc/sysdeps/linux/sh/Makefile.arch            |    4 ++++
>  .../libc/sysdeps/linux/sh/longjmp.c                |    2 ++
>  3 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/libc/misc/internals/__uClibc_main.c
> b/libc/misc/internals/__uClibc_main.c
> index d821268..61f821d 100644
> --- a/libc/misc/internals/__uClibc_main.c
> +++ b/libc/misc/internals/__uClibc_main.c
> @@ -36,6 +36,9 @@
>  #include <not-cancel.h>
>  #include <atomic.h>
>  #endif
> +#ifdef __UCLIBC_HAS_THREADS__
> +#include <pthread.h>
> +#endif
>
>
[...]

This part of the patch fixes the issue I reported [1].

Thanks,

[1] http://lists.uclibc.org/pipermail/uclibc/2010-June/044136.html


More information about the uClibc mailing list