$NetBSD$

--- utils/newmail.c.orig	2006-01-24 22:37:59.000000000 +0000
+++ utils/newmail.c
@@ -88,6 +88,7 @@ static char rcsid[] = "@(#)$Id: newmail.
 #include "s_newmail.h"
 #include "port_stat.h"
 
+#include <errno.h>
 #ifdef I_TIME
 #  include <time.h>
 #endif
@@ -160,8 +161,6 @@ FILE	*fd = NULL;		/* fd to use to read f
 int  parent_pid;		/* See if sucide should be attempt  */
 #endif /* PIDCHECK */
 
-extern int errno;
-
 #if defined(BSD) && !defined(UTIMBUF)
         time_t utime_buffer[2];         /* utime command */
 #else
@@ -700,7 +699,6 @@ char *name;
 	    is to check to see if new mail has arrived....  **/
 
 	int ok = 1;
-	extern int errno;	/* system error number! */
 	struct stat buffer;
 
 	if (stat(name, &buffer) != 0)
