$NetBSD: patch-aj,v 1.1 2008/08/17 20:09:12 dholland Exp $

--- src/Server/Error.c~	2004-09-16 18:05:58.000000000 -0400
+++ src/Server/Error.c	2008-08-17 15:55:37.000000000 -0400
@@ -3,6 +3,7 @@
  * Copylefted by pancake@phreaker.net at 2003
  */
 
+#include <unistd.h>
 #include "Error.h"
 
 /* Error strings array */
@@ -45,7 +46,7 @@ Error(str,err)
 	char *cwd;
 	if ( err==ERROR_CHDIR )
 	{
-		cwd=(char*)getcwd((char*)0,0); // Use static instead of alloc
+		cwd=getcwd((char*)0,0); // Use static instead of alloc
 		if (cwd)
 		{
 			printf("CWD : %s",cwd);
