summaryrefslogtreecommitdiff
path: root/mail/ja-mh/patches/patch-ap
blob: 51856ba19fe95e84dc36550fc63c07e62d4a3daf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ap,v 1.3 2006/04/11 15:08:38 joerg Exp $

--- uip/folder.c.orig	2006-04-11 14:21:12.000000000 +0000
+++ uip/folder.c
@@ -74,8 +74,6 @@ static struct swit switches[] = {
 
 /*  */
 
-extern int errno;
-
 static int  fshort = 0;
 static int  fcreat = 0;
 static int  fpack = 0;
@@ -572,7 +570,7 @@ register char   *name;
     }
     while (dp = readdir (dd))
 	if (strcmp (dp -> d_name, ".") && strcmp (dp -> d_name, "..")) {
-#if defined(SYS5DIR) && !defined(hpux) && !defined(__CYGWIN32__)
+#if defined(SYS5DIR) && !defined(hpux) && !defined(__CYGWIN32__) && !defined(__DragonFly__)
 	    if (cp + dp -> d_reclen + 2 >= name + BUFSIZ)
 #else /* SYS5DIR && !hpux && !__CYGWIN32__ */
 	    if (cp + strlen (dp -> d_name) + 2 >= name + BUFSIZ)