$NetBSD: patch-ad,v 1.1.1.1 2001/03/19 19:35:52 wiz Exp $ --- common/modfile.cpp.orig Sun Jan 28 11:06:47 2001 +++ common/modfile.cpp Sun Jan 28 11:07:29 2001 @@ -79,7 +79,7 @@ return -1; } - Mod->ptr = mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, Mod->fd, 0); + Mod->ptr = (char *)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, Mod->fd, 0); if ((int) *Mod->ptr == -1) { Mod->ptr = NULL; close(Mod->fd);