summaryrefslogtreecommitdiff
path: root/mail/elm-me/patches/patch-ca
blob: aca08f945bea8e0741f1ed5d30d842b4e269d3c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$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)