$OpenBSD: patch-loadfile_c,v 1.1 2010/05/23 16:13:33 espie Exp $
--- loadfile.c.orig	Sat Apr  1 13:17:21 1995
+++ loadfile.c	Sun May 23 18:10:41 2010
@@ -2,8 +2,9 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/fcntl.h>
+#include <stdlib.h>
+#include <errno.h>
 
-extern errno;
 
 char *loadfile(path)
 char *path;
@@ -20,7 +21,6 @@ char *path;
 
     struct stat statbuf;
     char *data;
-    char *malloc();
     int fd;
 
     if (stat(path, &statbuf) == -1)
