$NetBSD: patch-ad,v 1.3 2005/12/18 14:27:01 joerg Exp $

--- mmfile.c.orig	2004-01-02 15:00:34.000000000 +0000
+++ mmfile.c
@@ -36,6 +36,7 @@
 #include <sys/mman.h>
 #include <sys/stat.h>
 
+#include <zlib.h>
 #include <err.h>
 #include <fcntl.h>
 #include <stdlib.h>
@@ -46,7 +47,7 @@
 #define MAX_MAP_LEN 1048576
 
 mmf_t *
-mmopen(char *fn, char *mode)
+mmopen(const char *fn, const char *mode)
 {
 	mmf_t *mmf;
 	struct stat st;
