$NetBSD: patch-aa,v 1.6 2008/06/05 17:21:48 ghen Exp $

--- main.c.orig	2006-03-13 20:35:22.000000000 +0100
+++ main.c	2008-06-05 17:04:54.000000000 +0200
@@ -27,7 +27,9 @@
 
 /* Borrowed from C-Lib */
 extern char **environ;
+#ifndef errno
 extern int errno;
+#endif
 
 #if	CLIENTSERVER
 #include "communicate.c"
