[PATCH 1/2] Avoid conflicts with Solaris <sys/regset.h> defines that clash with our names
Keith Packard
keithp at keithp.com
Mon Nov 11 15:36:40 PST 2013
Alan Coopersmith <alan.coopersmith at oracle.com> writes:
> When building on Solaris with _XOPEN_SOURCE set to a recent XPG release,
> <stdlib.h> and other core headers start including <sys/regset.h>, which
> has a bunch of unfortunately named macros such as "CS", "ES", etc. for
> x86 & x64 registers which clash with existing variable & struct member
> names in Xorg - so #undef these so they don't interfere with our use.
>
> (Yes, have filed a bug against the system headers for exposing these,
> but this solves the problem for building on existing releases.)
Yuck. But, it looks like it's all carefully under #ifdef __sun, so if it
works for you...
Reviewed-by: Keith Packard <keithp at keithp.com>
--
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20131111/3a9ea16c/attachment.pgp>
More information about the xorg-devel
mailing list