$NetBSD: patch-aj,v 1.1 2011/01/29 21:15:11 markd Exp $ fix build with gcc4.3 --- lib/fileio.cpp.orig 2006-11-18 10:52:33.000000000 +0000 +++ lib/fileio.cpp @@ -27,6 +27,8 @@ #include #include +#include +#include #include #ifndef WIN32 #include @@ -122,7 +124,8 @@ int taccess(const char *pathname, int mo void tmktempname(const char *path, char *newPath, int newPathLen) { - char *ptr, *temp; + const char *ptr; + char *temp; temp = (char *)malloc(strlen(path) + 32); ptr = strrchr(path, dirSepChar);