$NetBSD: patch-ag,v 1.1 2006/01/02 22:29:03 joerg Exp $

--- file_w.c.orig	2006-01-02 22:20:56.000000000 +0000
+++ file_w.c
@@ -12,6 +12,7 @@
 #ifdef MIPS
 #include <sys/types.h>
 #include <sys/fcntl.h>
+#include <errno.h>
 #else
 #include <unistd.h>
 #include <fcntl.h>
@@ -23,7 +24,6 @@
 
 static BOOL writefile(struct plist *, char *, int, int);
 
-extern int		errno;
 extern char		*progname;		/* argv[0] */
 extern struct config	config;			/* global configuration data */
 extern struct plist	*mainlist;		/* all schedule entries */
