This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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: [libobjc] Fix failures on AIX (PR libobjc/63765)


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.

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