From 897ad5c04afd250fecf11858fffcb9b9ae5faf28 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 17 Sep 2005 20:37:29 +0000 Subject: Fix compilation on Solaris/i386. From Gilles Dauphin in PR 30902. --- archivers/unrar/distinfo | 3 ++- archivers/unrar/patches/patch-ac | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 archivers/unrar/patches/patch-ac (limited to 'archivers') diff --git a/archivers/unrar/distinfo b/archivers/unrar/distinfo index 0a9b6fadbcb..8f703d92bfe 100644 --- a/archivers/unrar/distinfo +++ b/archivers/unrar/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.21 2005/09/05 00:44:49 wiz Exp $ +$NetBSD: distinfo,v 1.22 2005/09/17 20:37:29 wiz Exp $ SHA1 (unrarsrc-3.5.3.tar.gz) = 15d3335732ef5636008016f8b1d7d2328675583a RMD160 (unrarsrc-3.5.3.tar.gz) = 8f34edd38e7c3d7bc8c454c4574fe2dc3b54d9e2 Size (unrarsrc-3.5.3.tar.gz) = 122678 bytes SHA1 (patch-aa) = 272060ab4fcaaae0de0d99a8533b268a3aa6d91a SHA1 (patch-ab) = fbbb1addd7570ac0e6328113c5d88c8ae931ceb6 +SHA1 (patch-ac) = ce3b9a618045d7ca7232e1622ac84bd82216e297 diff --git a/archivers/unrar/patches/patch-ac b/archivers/unrar/patches/patch-ac new file mode 100644 index 00000000000..415562efb6a --- /dev/null +++ b/archivers/unrar/patches/patch-ac @@ -0,0 +1,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; -- cgit v1.2.3