This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: OSELAS.Toolchain-2011.03.0: PTHREAD_PRIO_INHERIT undeclared for arm-1136jfs-linux-gcc


On Wed, Jan 4, 2012 at 10:31 PM, Daniel Lehne
<daniel.lehne@amk-drives.bg> wrote:
> On 04.1.2012 Ð. 20:06, Khem Raj wrote:
>>
>> On (04/01/12 13:34), Daniel Lehne wrote:
>>>
>>> Hello,
>>>
>>> Why this protocol is only for __USE_UNIX98 allowed? Is there a
>>> solution to use this protocol PTHREAD_PRIO_INHERIT Âwith gcc?
>>
>> add #define _GNU_SOURCE
>> at the top of your source file.
>>
>>
> I've tried it already __GNU_SOURCE don't works because of _XOPEN_SOURCE =
> 600. I don't want to make changes in features.h. May i will set __USE_UNIX98
> directly in source before the usage of phtread.h. Your answer shows me, this
> PTHREAD_PRIO_INHERIT should be available also for c source (gcc).
>

take your source add
#define _GNU_SOURCE to it on top
or add it on cmdline like below

-D_GNU_SOURCE

is that too hard ?

> Thanks!
>

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]