$OpenBSD: patch-j2se_src_share_back_stream_h,v 1.1.1.1 2004/12/21 04:01:05 kurt Exp $
--- j2se/src/share/back/stream.h.orig	Mon Dec 20 10:56:19 2004
+++ j2se/src/share/back/stream.h	Mon Dec 20 10:59:06 2004
@@ -10,7 +10,13 @@ jfloat  stream_encodeFloat(jfloat theFlo
 jdouble stream_encodeDouble(jdouble d);
 
 
-#if defined(__i386) || defined(x86) || defined(ia64)
+/*
+ * XXX On BSDs this ought to check BYTE_ORDER from machine/endian.h instead.
+ * #if BYTE_ORDER == LITTLE_ENDIAN ...
+ * perhaps also use native macros from that header, but I am not sure
+ * of how standard over the various BSDs this header is.
+ */
+#if defined(__i386) || defined(x86) || defined(ia64) || defined(__i386__)
 
 #define HOST_TO_JAVA_CHAR(x) (((x & 0xff) << 8) | ((x >> 8) & (0xff)))
 #define HOST_TO_JAVA_SHORT(x) (((x & 0xff) << 8) | ((x >> 8) & (0xff)))
