[patch] Fixes for non-NPTL threads build

Abdoulaye Walsimou Gaye awg at embtoolkit.org
Fri Jun 18 11:42:16 UTC 2010


On 06/17/2010 07:12 PM, Carmelo AMOROSO wrote:
> On 6/17/2010 6:55 PM, Carmelo AMOROSO wrote:
>   
>> On 6/17/2010 5:29 PM, Abdoulaye Walsimou Gaye wrote:
>>     
>>> 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
>>>       
>> I'll split it and commit separately.
>>
>>     
> done, see if it helps on ARM. SH4 specific fixes will come separately.
>   
Carmelo AMOROSO,
It works fine on ARM!

Thanks,
AWG


More information about the uClibc mailing list