pkgsrc/archivers/gzip/patches/patch-aa
ryoon a55f0a6f82 Fix PR pkg/47914. Bump PKGREVISION.
* Fix build on NetBSD 6.0.1.
  Update for fpos_t change (like devel/m4).
  Tested on NetBSD/amd64 6.0.1 and 6.99.21.
2013-06-10 11:56:58 +00:00

13 lines
497 B
Text

$NetBSD: patch-aa,v 1.2 2013/06/10 11:56:58 ryoon Exp $
--- gzip.h.orig 2012-01-01 08:53:58.000000000 +0000
+++ gzip.h
@@ -204,6 +204,8 @@ extern int test; /* check .z f
extern int to_stdout; /* output to stdout (-c) */
extern int save_orig_name; /* set if original name must be saved */
+#define MIN(a,b) ((a) <= (b) ? (a) : (b))
+
#define get_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf(0))
#define try_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf(1))