[PATCH 2/2] Replace 'sun' with '__sun'

Alan Coopersmith alan.coopersmith at oracle.com
Sat Nov 28 12:45:30 PST 2015


On 11/16/15 10:02 PM, Richard PALO wrote:
> From: Richard PALO <richard at NetBSD.org>
>
> Globally replace #ifdef and #if defined usage of 'sun' with '__sun'
> such that strict ISO compiler modes such as -ansi or -std=c99 can be used.
>
> Signed-off-by: Richard PALO <richard at NetBSD.org>
> ---
>   hw/kdrive/src/kinput.c             |  2 +-
>   hw/xfree86/common/xf86AutoConfig.c | 10 +++++-----
>   hw/xfree86/common/xf86Globals.c    |  2 +-
>   hw/xfree86/common/xf86Privstr.h    |  2 +-
>   hw/xfree86/common/xf86cmap.c       |  2 +-
>   hw/xfree86/loader/os.c             |  2 +-
>   hw/xfree86/os-support/bus/Sbus.c   |  4 ++--
>   hw/xfree86/os-support/xf86_OSlib.h | 22 +++++++++++-----------
>   os/access.c                        |  8 ++++----
>   os/backtrace.c                     |  2 +-
>   os/io.c                            |  2 +-
>   os/rpcauth.c                       |  2 +-
>   xkb/xkbInit.c                      |  2 +-
>   13 files changed, 31 insertions(+), 31 deletions(-)

Finally got a chance to try these out - it doesn't seem to change my build
at all (as expected).  While I don't think we've ever promised you can build
X in strict standard mode without any extensions, fixing this up is harmless,
so this is:

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>


-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list