$NetBSD$

--- libframe/misc.c.orig	2005-07-30 20:20:22.000000000 +0000
+++ libframe/misc.c
@@ -2,6 +2,7 @@
 #include	<u.h>
 #include	<libc.h>
 #include	<pwd.h>
+#include <errno.h>
 #ifdef	NEEDVARARG
 #include	<varargs.h>
 #else
@@ -22,8 +23,6 @@ fprint(int fd, char *z, ...)
 
 int errstr(char *buf)
 {
-	extern int errno;
-
 	strncpy(buf, strerror(errno), ERRLEN);
 	return 1;
 }
