pkgsrc/archivers/unshield/patches/patch-lib_file.c

15 lines
413 B
C

$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))))