2013-03-28 22:31:25 +01:00
|
|
|
|
$NetBSD: patch-ap,v 1.5 2013/03/28 21:31:25 joerg Exp $
|
2010-09-27 14:01:49 +02:00
|
|
|
|
|
|
|
|
|
* Add Dragonfly support.
|
2006-04-11 17:08:38 +02:00
|
|
|
|
|
2013-03-28 22:31:25 +01:00
|
|
|
|
--- uip/folder.c.orig 2001-04-02 10:35:24.000000000 +0000
|
2006-04-11 17:08:38 +02:00
|
|
|
|
+++ uip/folder.c
|
2013-03-28 22:31:25 +01:00
|
|
|
|
@@ -11,7 +11,9 @@ static char ident[] = "@(#)$Id: folder.c
|
|
|
|
|
#include <locale.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
-static dodir(), addir(), addfold(), dother();
|
|
|
|
|
+static void addfold (char *fold);
|
|
|
|
|
+static void addir (char *name);
|
|
|
|
|
+static dodir(), dother();
|
|
|
|
|
static int pfold(), sfold(), compare();
|
|
|
|
|
/* */
|
|
|
|
|
|
|
|
|
|
@@ -74,8 +76,6 @@ static struct swit switches[] = {
|
2006-04-11 17:08:38 +02:00
|
|
|
|
|
|
|
|
|
/* */
|
|
|
|
|
|
|
|
|
|
-extern int errno;
|
|
|
|
|
-
|
|
|
|
|
static int fshort = 0;
|
|
|
|
|
static int fcreat = 0;
|
|
|
|
|
static int fpack = 0;
|
2013-03-28 22:31:25 +01:00
|
|
|
|
@@ -542,8 +542,7 @@ register struct msgs *mp;
|
|
|
|
|
|
|
|
|
|
/* */
|
|
|
|
|
|
|
|
|
|
-static addir (name)
|
|
|
|
|
-register char *name;
|
|
|
|
|
+static void addir (char *name)
|
|
|
|
|
{
|
|
|
|
|
register char *base,
|
|
|
|
|
*cp;
|
|
|
|
|
@@ -572,7 +571,7 @@ register char *name;
|
2006-04-11 17:08:38 +02:00
|
|
|
|
}
|
|
|
|
|
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)
|
2013-03-28 22:31:25 +01:00
|
|
|
|
@@ -589,8 +588,7 @@ register char *name;
|
|
|
|
|
|
|
|
|
|
/* */
|
|
|
|
|
|
|
|
|
|
-static addfold (fold)
|
|
|
|
|
-register char *fold;
|
|
|
|
|
+static void addfold (char *fold)
|
|
|
|
|
{
|
|
|
|
|
register int i,
|
|
|
|
|
j;
|