summaryrefslogtreecommitdiff
path: root/archivers/unrar/patches/patch-ac
blob: 600dc987d0cba896739499a967c98b5f1cdb502f (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.3 2012/03/09 10:31:49 fhajny 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__) || defined(__amd64) || defined(amd64) || defined(__amd64__)
+  #ifndef LITTLE_ENDIAN
+     #define LITTLE_ENDIAN
+  #endif
+#endif
+
 #endif
 
   typedef const char* MSGID;