summaryrefslogtreecommitdiff
path: root/mail/elm/patches/patch-al
blob: c70e10cfc64745fc27564291a18abccba558601e (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
$NetBSD: patch-al,v 1.1 2006/01/24 22:47:13 joerg Exp $

--- 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)