raros.hpp defines _UNIX on ~everything except Windows, so remove a chunk that shouldn't be necessary.diff -r1.44 -r1.45 pkgsrc/archivers/unrar/distinfo
(wiz)
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.44 2012/09/14 12:44:06 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.45 2012/09/14 14:09:16 wiz Exp $ | |
2 | 2 | |||
3 | SHA1 (unrarsrc-4.2.4.tar.gz) = 1cc29603fb4e4df16a3aa9bfc7da1afaf0923259 | 3 | SHA1 (unrarsrc-4.2.4.tar.gz) = 1cc29603fb4e4df16a3aa9bfc7da1afaf0923259 | |
4 | RMD160 (unrarsrc-4.2.4.tar.gz) = 53a590ed2a71be86a0a7abfe9c37ddc8dc869800 | 4 | RMD160 (unrarsrc-4.2.4.tar.gz) = 53a590ed2a71be86a0a7abfe9c37ddc8dc869800 | |
5 | Size (unrarsrc-4.2.4.tar.gz) = 164641 bytes | 5 | Size (unrarsrc-4.2.4.tar.gz) = 164641 bytes | |
6 | SHA1 (patch-ac) = 14192cf81b59442d5b4c2e9212330d8998135ec2 | 6 | SHA1 (patch-ac) = 4ee81900eff28a01fa609e548a72cfad3f352700 | |
7 | SHA1 (patch-consio.cpp) = 341dd714b165fabf3dec0213b9bb3e57dcc146f5 | 7 | SHA1 (patch-consio.cpp) = 341dd714b165fabf3dec0213b9bb3e57dcc146f5 |
@@ -1,27 +1,17 @@ | @@ -1,27 +1,17 @@ | |||
1 | $NetBSD: patch-ac,v 1.3 2012/03/09 10:31:49 fhajny Exp $ | 1 | $NetBSD: patch-ac,v 1.4 2012/09/14 14:09:17 wiz Exp $ | |
2 | 2 | |||
3 | --- os.hpp.orig 2008-09-16 14:24:56.000000000 +0000 | 3 | --- os.hpp.orig 2008-09-16 14:24:56.000000000 +0000 | |
4 | +++ os.hpp | 4 | +++ os.hpp | |
5 | @@ -135,7 +135,8 @@ | |||
6 | ||||
7 | #endif | |||
8 | ||||
9 | -#ifdef _UNIX | |||
10 | +/*#ifdef _UNIX */ | |||
11 | +#if defined(__unix) || defined(__unix__) || defined(_UNIX) | |||
12 | ||||
13 | #define NM 1024 | |||
14 | ||||
15 | @@ -212,6 +213,12 @@ | 5 | @@ -212,6 +213,12 @@ | |
16 | #endif | 6 | #endif | |
17 | #endif | 7 | #endif | |
18 | 8 | |||
19 | +#if defined(__i386) || defined(i386) || defined(__i386__) || defined(__amd64) || defined(amd64) || defined(__amd64__) | 9 | +#if defined(__i386) || defined(i386) || defined(__i386__) || defined(__amd64) || defined(amd64) || defined(__amd64__) | |
20 | + #ifndef LITTLE_ENDIAN | 10 | + #ifndef LITTLE_ENDIAN | |
21 | + #define LITTLE_ENDIAN | 11 | + #define LITTLE_ENDIAN | |
22 | + #endif | 12 | + #endif | |
23 | +#endif | 13 | +#endif | |
24 | + | 14 | + | |
25 | #endif | 15 | #endif | |
26 | 16 | |||
27 | typedef const char* MSGID; | 17 | typedef const char* MSGID; |