summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2012-01-11 14:29:36 +0000
committerhans <hans@pkgsrc.org>2012-01-11 14:29:36 +0000
commit7b482353eb1dc1ae484def8a5cfaeead62c14f5d (patch)
tree48d9ec8d0bf997251c924a1043a2f33dad380b53 /archivers
parentc4ca27d07955febb8f1a898a960d861cb1703353 (diff)
downloadpkgsrc-7b482353eb1dc1ae484def8a5cfaeead62c14f5d.tar.gz
Fix build on systems that don't provide a definition for MIN.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/unshield/distinfo3
-rw-r--r--archivers/unshield/patches/patch-lib_file.c15
2 files changed, 17 insertions, 1 deletions
diff --git a/archivers/unshield/distinfo b/archivers/unshield/distinfo
index fa0441fb17f..e8f26aed7ba 100644
--- a/archivers/unshield/distinfo
+++ b/archivers/unshield/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.3 2008/05/14 11:56:26 jmcneill Exp $
+$NetBSD: distinfo,v 1.4 2012/01/11 14:29:36 hans Exp $
SHA1 (unshield-0.5.1.tar.gz) = 13211a32100947969a8ece6393345332d6ff667b
RMD160 (unshield-0.5.1.tar.gz) = 5ef4db939437dc5e620cac4d46b03c1d59beb771
Size (unshield-0.5.1.tar.gz) = 362466 bytes
SHA1 (patch-aa) = 0e100b18c85f72bd7b7bf2fd7ef0eed6d0d20ad9
SHA1 (patch-ab) = 19db0c305dcd627075c152a48e99d69ab28d39ee
+SHA1 (patch-lib_file.c) = bdb1ce61bea29683f8def036ac829b5c3252933f
diff --git a/archivers/unshield/patches/patch-lib_file.c b/archivers/unshield/patches/patch-lib_file.c
new file mode 100644
index 00000000000..ba8e6d664d8
--- /dev/null
+++ b/archivers/unshield/patches/patch-lib_file.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_file.c,v 1.1 2012/01/11 14:29:36 hans Exp $
+
+--- lib/file.c.orig 2008-05-06 03:38:11.000000000 +0200
++++ lib/file.c 2011-12-29 13:41:30.765248351 +0100
+@@ -17,6 +17,10 @@
+ #include <sys/param.h> /* for MIN(a,b) */
+ #include <zlib.h>
+
++#ifndef MIN
++#define MIN(a, b) ((a) < (b) ? (a) : (b))
++#endif
++
+ #define VERBOSE 3
+
+ #define ror8(x,n) (((x) >> ((int)(n))) | ((x) << (8 - (int)(n))))