pkgsrc/archivers/unzip/patches/patch-ac
2012-09-14 13:10:48 +00:00

30 lines
983 B
Text

$NetBSD: patch-ac,v 1.3 2012/09/14 13:10:48 wiz Exp $
Fix build with -DFUNZIP.
--- inflate.c.orig 2008-07-30 01:31:08.000000000 +0000
+++ inflate.c
@@ -473,7 +473,11 @@ int UZinflate(__G__ is_defl64)
retval = 2;
} else {
/* output write failure */
+#ifdef FUNZIP
+ retval = PK_DISK;
+#else
retval = (G.disk_full != 0 ? PK_DISK : IZ_CTRLC);
+#endif
}
} else {
Trace((stderr, "oops! (inflateBack9() err = %d)\n", err));
@@ -538,7 +542,11 @@ int UZinflate(__G__ is_defl64)
retval = 2;
} else {
/* output write failure */
+#ifdef FUNZIP
+ retval = PK_DISK;
+#else
retval = (G.disk_full != 0 ? PK_DISK : IZ_CTRLC);
+#endif
}
} else {
Trace((stderr, "oops! (inflateBack() err = %d)\n", err));