summaryrefslogtreecommitdiff
path: root/shared/vmmouse_proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/vmmouse_proto.h')
-rw-r--r--shared/vmmouse_proto.h9
1 files changed, 9 insertions, 0 deletions
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