This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libobjc] Fix failures on AIX (PR libobjc/63765)
- From: Mike Stump <mikestump at comcast dot net>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: gcc-patches Patches <gcc-patches at gcc dot gnu dot org>, Alexandre Oliva <aoliva at redhat dot com>
- Date: Wed, 28 Jan 2015 10:29:37 -0800
- Subject: Re: [libobjc] Fix failures on AIX (PR libobjc/63765)
- Authentication-results: sourceware.org; auth=none
- References: <yddpp9zjj49 dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE>
On Jan 28, 2015, at 2:27 AM, Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> wrote:
> There are two ways to fix this:
>
> * Remove the definition of _XOPEN_SOURCE completely. This is slightly
> more risky, but more future-proof since defining features test macros
> has been an endless source of trouble in the past.
I think I prefer this one...
But, as I say that, I read:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4372
and there is no hint what host caused him to put the change in, in the first place. :-( Alexandre, do you recall what host needed the _XOPEN_SOURCE in libobjc for pthread_mutexattr_settype?
Anyway, going forward, I would say that any target that needs a specific value should just put in the #ifdef arch #define XPOPEN val #end, if they need it.