diff options
Diffstat (limited to 'misc/xtail/patches/patch-ab')
-rw-r--r-- | misc/xtail/patches/patch-ab | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/misc/xtail/patches/patch-ab b/misc/xtail/patches/patch-ab index 933d1761519..fdac624b88f 100644 --- a/misc/xtail/patches/patch-ab +++ b/misc/xtail/patches/patch-ab @@ -1,8 +1,28 @@ -$NetBSD: patch-ab,v 1.1.1.1 2001/07/08 14:29:51 simonb Exp $ +$NetBSD: patch-ab,v 1.2 2006/01/03 15:56:54 joerg Exp $ ---- miscfuncs.c.orig Mon Jun 5 17:13:22 2000 -+++ miscfuncs.c Mon Jul 9 00:22:08 2001 -@@ -281,7 +281,7 @@ +--- miscfuncs.c.orig 2000-06-05 07:13:22.000000000 +0000 ++++ miscfuncs.c +@@ -7,6 +7,7 @@ + #include <string.h> + #include <ctype.h> + #include <fcntl.h> ++#include <limits.h> + #include <errno.h> + #ifdef HAVE_UNISTD_H + # include <unistd.h> +@@ -65,7 +66,11 @@ int scan_directory(const char *dirname) + char *basename; + struct stat sbuf; + DIR *dirp; ++#ifdef NAME_MAX ++ static char pathname[NAME_MAX]; ++#else + static char pathname[MAXNAMLEN]; ++#endif + + Dprintf(stderr, ">>> scanning directory '%s'\n", dirname); + if ((dirp = opendir(dirname)) == NULL) +@@ -281,7 +286,7 @@ VOID *safe_malloc(size_t n) { VOID *p; if ((p = malloc(n)) == NULL) { @@ -11,7 +31,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2001/07/08 14:29:51 simonb Exp $ exit(2); } return p; -@@ -291,7 +291,7 @@ +@@ -291,7 +296,7 @@ VOID *safe_realloc(VOID *p, size_t n) { VOID *p1; if ((p1 = realloc(p, n)) == NULL) { |