This is the mail archive of the
mailing list for the GCC project.
Re: Why -D_XOPEN_SOURCE=500 for Solaris?
On Sat, Feb 23, 2002 at 01:46:51AM -0300, Alexandre Oliva wrote:
> On Feb 23, 2002, Craig Rodrigues <email@example.com> wrote:
> > In PR 4915, the submitter asked why on _XOPEN_SOURCE
> > on Solaris is defined to 500 with g++ but not
> > with gcc.
> it's because libstdc++-v3 depends on some of the features of
> Solaris that are only declared/defined when this macro is defined.
> Same as -D_GNU_SOURCE on GNU/Linux.
Yep, this can be considered a long-standing wart, but I wouldn't call it
a bug. Nobody has come up with a feasible alternative yet.
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams