$NetBSD: patch-ca,v 1.2 2015/11/08 20:42:38 dholland Exp $ - use standard headers - avoid obsolete sys/timeb.h - don't declare own errno --- utils/newmail.c.orig 2001-06-19 17:03:48.000000000 +0000 +++ utils/newmail.c @@ -61,6 +61,7 @@ static char rcsid[] = "@(#)$Id: newmail. DEBUG_VAR(Debug,__FILE__,"util"); +#include #ifdef PWDINSYS # include #else @@ -68,10 +69,6 @@ DEBUG_VAR(Debug,__FILE__,"util"); #endif #include -#ifdef BSD_TYPE -# include -#endif - #ifdef I_UTIME # include #endif @@ -141,8 +138,6 @@ int interval_time, /* how long to slee int parent_pid; /* See if sucide should be attempt */ #endif /* PIDCHECK */ -extern int errno; - #if defined(BSD_TYPE) && !defined(UTIMBUF) time_t utime_buffer[2]; /* utime command */ @@ -780,7 +775,6 @@ static void save_acc(name) /** return the number of bytes in the specified file. This is to check to see if new mail has arrived.... **/ - extern int errno; /* system error number! */ struct stat buffer; if (stat(name, &buffer) != 0)