$NetBSD: patch-bz,v 1.1 2006/01/24 19:01:45 joerg Exp $

--- lib/posixsig.c.orig	2006-01-24 17:44:47.000000000 +0000
+++ lib/posixsig.c
@@ -15,6 +15,7 @@ static char rcsid[] = "@(#)$Id: posixsig
 
 **/
 
+#include <errno.h>
 #include "headers.h"
 
 DEBUG_VAR(Debug,__FILE__,"signal");
@@ -67,8 +68,6 @@ SIGHAND_TYPE
 }
 #endif /* POSIX_SIGNALS */
 
-extern int errno;
-
 #ifdef BACKGROUD_PROCESSES       /* We assume POSIX in here */
 
 int my_wait (pid,statptr)
