From d5ae42ec3849672438823b08ad06a69289ae99c5 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 7 May 2009 15:53:32 -0700 Subject: Map Solaris/Sun compiler #defines to gcc equivalents Signed-off-by: Alan Coopersmith --- shared/vmmouse_proto.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/shared/vmmouse_proto.h b/shared/vmmouse_proto.h index a2eb1e4..9d7cb22 100644 --- a/shared/vmmouse_proto.h +++ b/shared/vmmouse_proto.h @@ -49,6 +49,15 @@ #include "xf86_libc.h" #endif +/* Map Solaris/Sun compiler #defines to gcc equivalents */ +#if !defined __i386__ && defined __i386 +# define __i386__ +#endif + +#if !defined __x86_64__ && defined __amd64 +# define __x86_64__ +#endif + #if !defined __i386__ && !defined __x86_64__ #error The vmmouse protocol is only supported on x86 architectures. #endif -- cgit v1.2.3