diff options
Diffstat (limited to 'archivers/xbin/patches/patch-aa')
-rw-r--r-- | archivers/xbin/patches/patch-aa | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/archivers/xbin/patches/patch-aa b/archivers/xbin/patches/patch-aa new file mode 100644 index 00000000000..66a7addd70e --- /dev/null +++ b/archivers/xbin/patches/patch-aa @@ -0,0 +1,21 @@ +$NetBSD: patch-aa,v 1.1 2005/10/03 11:23:43 joerg Exp $ + +--- xbinunix.c.orig 2005-08-17 18:43:47.000000000 +0000 ++++ xbinunix.c +@@ -2,12 +2,15 @@ + static char version[] = "xbin.c Version 2.3 09/30/85";
+ #endif lint
+
++#include <limits.h> + #include <stdio.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/dir.h>
+
+-#ifdef MAXNAMLEN /* 4.2 BSD */
++#if defined(NAME_MAX) ++#define FNAMELEN NAME_MAX ++#elif defined(MAXNAMLEN) /* 4.2 BSD */
+ #define FNAMELEN MAXNAMLEN
+ #else
+ #define FNAMELEN DIRSIZ
|