$NetBSD: patch-af,v 1.1 2009/12/15 13:11:18 taca Exp $

* ZLIB => USE_ZLIB; it should simply use HAVE_ZLIB_H.

--- decode.c.orig	2008-12-18 16:07:25.000000000 +0900
+++ decode.c
@@ -41,9 +41,9 @@
 #include <utime.h>
 #include <stddef.h>
 
-#ifdef ZLIB
+#ifdef USE_ZLIB
 #include <zlib.h>
-#endif /* ZLIB */
+#endif /* USE_ZLIB */
 
 #include "cue.h"
 #include "decode.h"
@@ -910,7 +910,7 @@ decode_zip(struct decode *dp, char **pp,
 	*pp = b64_getptr(&bs);
 }
 
-#ifdef ZLIB
+#ifdef USE_ZLIB
 
 /* decode x-gzip64 text */
 static void
@@ -987,7 +987,7 @@ decode_gzip64(struct decode *dp, char **
 	dp->noconv = 1;
 	decode_base64(dp, pp, ep);
 }
-#endif /* ZLIB */
+#endif /* USE_ZLIB */
 
 /* decode 1 line body */
 int
@@ -1006,11 +1006,11 @@ decode_text(char **pp, char *ep, cbuf_t 
 	case FDB_ENC_B64:
 		decode_base64(&d, pp, ep);
 		break;
-#ifdef ZLIB
+#ifdef USE_ZLIB
 	case FDB_ENC_GZ64:
 		decode_gzip64(&d, pp, ep);
 		break;
-#endif /* ZLIB */
+#endif /* USE_ZLIB */
 	case FDB_ENC_UU:
 		decode_uuencode(&d, pp, ep);
 		break;
@@ -1300,14 +1300,14 @@ save_part(struct state *state, int all)
 		return;
 	message_parseall(fdb);
 
-#ifdef ZLIB
+#ifdef USE_ZLIB
 	if (!all && (fdb->flags & FDB_ENCODE) == FDB_ENC_ZIP) {
 		if (fdb->lines - fdb->hdr_lines == 7) {
 			fdb->filename = *fdb_read(fdb, fdb->lines - 1);
 			singlezip = 1;
 		}
 	}
-#endif /* ZLIB */
+#endif /* USE_ZLIB */
 
 	p = state->status;
 	ep = state->status + sizeof(state->status);
@@ -1384,11 +1384,11 @@ save_part(struct state *state, int all)
 			else
 				decode_base64(&d, &p, ep);
 			break;
-#ifdef ZLIB
+#ifdef USE_ZLIB
 		case FDB_ENC_GZ64:
 			decode_gzip64(&d, &p, ep);
 			break;
-#endif /* ZLIB */
+#endif /* USE_ZLIB */
 		default:
 			fwrite(CP(&fdb->buf_body), CL(&fdb->buf_body), 1, fp);
 			break;
