From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10829 invoked by alias); 6 Jan 2012 06:24:22 -0000 Received: (qmail 10820 invoked by uid 22791); 6 Jan 2012 06:24:20 -0000 X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.amk-drives.bg (HELO amk-drives.bg) (213.91.234.2) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 06 Jan 2012 06:24:07 +0000 Received: (qmail 98210 invoked from network); 6 Jan 2012 08:27:45 +0200 Received: from unknown (HELO ?192.168.0.3?) (192.168.0.3) by 0 with SMTP; 6 Jan 2012 08:27:45 +0200 Message-ID: <4F06937A.4020000@amk-drives.bg> Date: Fri, 06 Jan 2012 06:24:00 -0000 From: Daniel Lehne User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Khem Raj CC: crossgcc@sourceware.org Subject: Re: OSELAS.Toolchain-2011.03.0: PTHREAD_PRIO_INHERIT undeclared for arm-1136jfs-linux-gcc References: <4F043938.80908@amk-drives.bg> <20120104180655.GC32676@sakrah.homelinux.org> <4F0543B5.5010306@amk-drives.bg> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2012-01/txt/msg00014.txt.bz2 On 05.1.2012 г. 20:08, Khem Raj wrote: > On Wed, Jan 4, 2012 at 10:31 PM, Daniel Lehne > 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! >> >> Thank for the correction. Of course _GNU_SOURCE works, when it's defined(spelled) correctly. -- For unsubscribe information see http://sourceware.org/lists.html#faq