$NetBSD: patch-ab,v 1.1.1.1 2002/03/31 21:41:31 cjep Exp $ --- arch/DispKbd.c.orig Tue Aug 3 21:00:17 1999 +++ arch/DispKbd.c Sun Mar 31 15:34:10 2002 @@ -43,6 +43,41 @@ #define HD HOSTDISPLAY #define DC DISPLAYCONTROL +/* Endian */ + +#ifndef HOST_BIGENDIAN + +#ifdef __Linux__ +#define __USE_BSD +#include +#if BYTE_ORDER == BIG_ENDIAN +#define HOST_BIGENDIAN +#endif +#endif + +#ifdef __NetBSD__ +#include +#if BYTE_ORDER == BIG_ENDIAN +#define HOST_BIGENDIAN +#endif +#endif + +#ifdef __APPLE__ +#include +#if BYTE_ORDER == BIG_ENDIAN +#define HOST_BIGENDIAN +#endif +#endif + +#ifdef __sun__ +#include +#ifdef _BIG_ENDIAN +#define HOST_BIGENDIAN +#endif +#endif + +#endif /* HOST_BIGENDIAN */ + static unsigned AutoKey(ARMul_State *state); unsigned DisplayKbd_XPoll(ARMul_State *state);