summaryrefslogtreecommitdiff
path: root/archivers/afio/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/afio/patches/patch-ab')
-rw-r--r--archivers/afio/patches/patch-ab15
1 files changed, 14 insertions, 1 deletions
diff --git a/archivers/afio/patches/patch-ab b/archivers/afio/patches/patch-ab
index 957e49b7624..e4cd58bdbc8 100644
--- a/archivers/afio/patches/patch-ab
+++ b/archivers/afio/patches/patch-ab
@@ -1,4 +1,8 @@
-$NetBSD: patch-ab,v 1.2 2005/10/03 11:15:55 joerg Exp $
+$NetBSD: patch-ab,v 1.3 2012/06/23 18:02:15 dholland Exp $
+
+- Use NAME_MAX if available rather than relying on MAXNAMLEN.
+- Fix Solaris preprocessor symbols.
+- Fix bad calls to execlp() that break on 64-bit platforms.
--- compfile.c.orig 2003-06-24 21:32:20.000000000 +0000
+++ compfile.c
@@ -10,6 +14,15 @@ $NetBSD: patch-ab,v 1.2 2005/10/03 11:15:55 joerg Exp $
#include <unistd.h>
#include <string.h>
+@@ -179,7 +180,7 @@ int setupgzip(char *name)
+ if (open (name, O_RDONLY) >= 0)
+ {
+ if(! compressargs)
+- execlp (compressprog, compressprog, "-c", farg, 0);
++ execlp (compressprog, compressprog, "-c", farg, (char *)NULL);
+ else
+ execvp (compressprog, compress_arg_list);
+ }
@@ -210,7 +211,7 @@ void waitforgzip()
* version;
*/