Files
pkgsrc-ng/mail/ja-mh/patches/patch-ah
2013-09-26 17:14:40 +02:00

29 lines
744 B
Plaintext

$NetBSD: patch-ah,v 1.4 2010/09/27 12:01:49 taca Exp $
* Don't declare errno but include <errno.h>.
--- sbr/makedir.c.orig 2006-04-11 13:36:24.000000000 +0000
+++ sbr/makedir.c
@@ -14,10 +14,11 @@ static char ident[] = "@(#)$Id: makedir.
#include "../h/mh.h"
#include <stdio.h>
+#include <errno.h>
+
#if defined (BSD42) || defined(SVR4) || \
defined (hpux) || defined(sgi) || defined(__osf__) || defined(ncr) || \
defined (_AIX) || defined(AUX) || defined(linux) || defined(__CYGWIN32__)
-#include <errno.h>
#include <sys/param.h>
#include <sys/file.h>
#endif /* BSD42 ... */
@@ -29,8 +30,6 @@ static char ident[] = "@(#)$Id: makedir.
#include <unistd.h>
#endif
-extern int errno;
-
makedir (dir)
register char *dir;
{