2016-11-18 22:39:22 +01:00

45 lines
1.1 KiB
Plaintext

$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 <errno.h>
#ifdef PWDINSYS
# include <sys/pwd.h>
#else
@@ -68,10 +69,6 @@ DEBUG_VAR(Debug,__FILE__,"util");
#endif
#include <sys/stat.h>
-#ifdef BSD_TYPE
-# include <sys/timeb.h>
-#endif
-
#ifdef I_UTIME
# include <utime.h>
#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)