$NetBSD: patch-ad,v 1.1 2005/12/15 23:02:33 joerg Exp $

--- screen.c.orig	2005-12-15 22:53:30.000000000 +0000
+++ screen.c
@@ -36,6 +36,7 @@ static char rcsid[] = "$Id: screen.c,v 1
 #elif defined(HAVE_LIBGEN_H)
 #include <libgen.h>
 #endif
+#include <errno.h>
 
 #include "compat.h"
 #include "tty.h"
@@ -109,7 +110,6 @@ extern char	*myname, nick[], *srvnm;
 extern void	(*othercmd) __P((char *));
 extern int	on_irc;
 extern int	umd;
-extern int	errno;
 extern int	is_away;
 
 char		*prompt;
