pkgsrc/mail/elm/patches/patch-al
joerg bdc9385669 Remove LIBC hack, shouldn't be needed anymore.
Express interest in nroff via USE_TOOLS.
Expect sys/types.h to provide size_t.
Fix errno.
Don't define prototypes for ISO C / POSIX functions.
short gets promoted to int, float to double, so use va_arg with the
promoted types.
2006-01-24 22:47:13 +00:00

29 lines
792 B
Text

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