$NetBSD: patch-ac,v 1.2 2008/10/09 13:27:35 wiz Exp $

--- os.hpp.orig	2008-09-16 14:24:56.000000000 +0000
+++ os.hpp
@@ -135,7 +135,8 @@
 
 #endif
 
-#ifdef _UNIX
+/*#ifdef _UNIX */
+#if defined(__unix) || defined(__unix__) || defined(_UNIX)
 
 #define  NM  1024
 
@@ -212,6 +213,12 @@
   #endif
 #endif
 
+#if defined(__i386) || defined(i386) || defined(__i386__)
+  #ifndef LITTLE_ENDIAN
+     #define LITTLE_ENDIAN
+  #endif
+#endif
+
 #endif
 
   typedef const char* MSGID;
