diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-11-20 18:31:03 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-11-20 18:31:07 -0800 |
commit | a55ec1a9f4b62139dc5e5462d79d47b330c27c79 (patch) | |
tree | 80f5a4b2504540816c86b61018d99bf42a0a9f84 /hw/xfree86/os-support/solaris/sun_bios.c | |
parent | 2f387d913aa76f1b6d21d8e2698be165301c6bc1 (diff) |
Restore checks for __i386 where needed for Sun compilers on Solaris
Diffstat (limited to 'hw/xfree86/os-support/solaris/sun_bios.c')
-rw-r--r-- | hw/xfree86/os-support/solaris/sun_bios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xfree86/os-support/solaris/sun_bios.c b/hw/xfree86/os-support/solaris/sun_bios.c index 1223dcd68..1fae9759c 100644 --- a/hw/xfree86/os-support/solaris/sun_bios.c +++ b/hw/xfree86/os-support/solaris/sun_bios.c @@ -26,7 +26,7 @@ #include <xorg-config.h> #endif -#ifdef __i386__ +#if defined(__i386__) || defined(__i386) #define _NEED_SYSI86 #endif #include "xf86.h" @@ -66,7 +66,7 @@ xf86ReadBIOS(unsigned long Base, unsigned long Offset, unsigned char *Buf, Offset += Base & (psize - 1); Base &= ~(psize - 1); mlen = (Offset + Len + psize - 1) & ~(psize - 1); -#if defined(__i386__) && !defined(__SOL8__) +#if (defined(__i386__) || defined(__i386)) && !defined(__SOL8__) if (Base >= 0xA0000 && Base + mlen < 0xFFFFF && xf86Info.vtno >= 0) sprintf(solx86_vtname, "/dev/vt%02d", xf86Info.vtno); else |