$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 <assert.h>
 #include <errno.h>
+#include <stdlib.h>
+#include <string.h>
 #include <string>
 #ifndef WIN32
 #include <unistd.h>
@@ -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);
