summaryrefslogtreecommitdiff
path: root/archivers/unrar/patches/patch-ac
blob: 415562efb6a776f163d065673becd30ad79ba55f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-ac,v 1.1 2005/09/17 20:37:29 wiz Exp $

--- os.hpp.orig	2005-08-03 18:34:30.000000000 +0200
+++ os.hpp
@@ -133,7 +133,8 @@
 
 #endif
 
-#ifdef _UNIX
+/*#ifdef _UNIX */
+#if defined(__unix) || defined(__unix__) || defined(_UNIX)
 
 #define  NM  1024
 
@@ -208,6 +209,12 @@
   #endif
 #endif
 
+#if defined(__i386) || defined(i386) || defined(__i386__)
+  #ifndef LITTLE_ENDIAN
+     #define LITTLE_ENDIAN
+  #endif
+#endif
+
 #endif
 
 typedef const char* MSGID;