pkgsrc/mail/ja-mh/patches/patch-ah
taca f7ee73e0ba * Fix build problem on NetBSD current, terminfo case.
* Add comments to each patch file.
2010-09-27 12:01:49 +00:00

28 lines
744 B
Text

$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;
{