ia64/xen-unstable

changeset 11906:e2de39c56f92

[SOLARIS] Don't use -nostdinc as it prevents getting stadrg.h
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Thu Oct 19 17:01:51 2006 +0100 (2006-10-19)
parents a77e38f63785
children 4c40bed66ade
files xen/arch/x86/Rules.mk xen/include/xen/stdarg.h
line diff
     1.1 --- a/xen/arch/x86/Rules.mk	Thu Oct 19 16:32:11 2006 +0100
     1.2 +++ b/xen/arch/x86/Rules.mk	Thu Oct 19 17:01:51 2006 +0100
     1.3 @@ -11,7 +11,12 @@ HAS_VGA  := y
     1.4  pae ?= n
     1.5  supervisor_mode_kernel ?= n
     1.6  
     1.7 -CFLAGS += -nostdinc -fno-builtin -fno-common -fno-strict-aliasing
     1.8 +# Solaris grabs stdarg.h and friends from the system include directory.
     1.9 +ifneq ($(XEN_OS),SunOS)
    1.10 +CFLAGS += -nostdinc
    1.11 +endif
    1.12 +
    1.13 +CFLAGS += -fno-builtin -fno-common -fno-strict-aliasing
    1.14  CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe
    1.15  CFLAGS += -I$(BASEDIR)/include 
    1.16  CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-generic
     2.1 --- a/xen/include/xen/stdarg.h	Thu Oct 19 16:32:11 2006 +0100
     2.2 +++ b/xen/include/xen/stdarg.h	Thu Oct 19 17:01:51 2006 +0100
     2.3 @@ -1,4 +1,4 @@
     2.4 -#if defined(__OpenBSD__) || defined(__sun__)
     2.5 +#if defined(__OpenBSD__)
     2.6  #  include "/usr/include/stdarg.h"
     2.7  #else
     2.8  #  include <stdarg.h>