$OpenBSD: patch-j2se_src_share_back_stream_h,v 1.2 2007/07/18 15:09:52 kurt Exp $
--- j2se/src/share/back/stream.h.orig	Wed Sep 10 21:46:42 2003
+++ j2se/src/share/back/stream.h	Wed Jul 18 10:56:32 2007
@@ -10,7 +10,13 @@ jfloat  stream_encodeFloat(jfloat theFloat);
 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)))
