summaryrefslogtreecommitdiff
path: root/devel/nbpatch/files
diff options
context:
space:
mode:
authorjoerg <joerg>2009-04-29 13:41:16 +0000
committerjoerg <joerg>2009-04-29 13:41:16 +0000
commit1a8101887a740572d2d422512f77eec77db674f0 (patch)
tree7f4371d18da6eeae4253960cb9619a36f5ea57e7 /devel/nbpatch/files
parent7adace524ba079ff09407ccf44039384060ce583 (diff)
downloadpkgsrc-1a8101887a740572d2d422512f77eec77db674f0.tar.gz
Deal with missing NAME_MAX on AIX.
Diffstat (limited to 'devel/nbpatch/files')
-rw-r--r--devel/nbpatch/files/patch.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/devel/nbpatch/files/patch.c b/devel/nbpatch/files/patch.c
index e787148f9bf..0dfc1fd7de7 100644
--- a/devel/nbpatch/files/patch.c
+++ b/devel/nbpatch/files/patch.c
@@ -1,7 +1,7 @@
/*
* $OpenBSD: patch.c,v 1.45 2007/04/18 21:52:24 sobrado Exp $
* $DragonFly: src/usr.bin/patch/patch.c,v 1.10 2008/08/10 23:39:56 joerg Exp $
- * $NetBSD: patch.c,v 1.1.1.1 2008/09/10 11:03:21 joerg Exp $
+ * $NetBSD: patch.c,v 1.2 2009/04/29 13:41:16 joerg Exp $
*/
/*
@@ -117,7 +117,13 @@ static bool remove_empty_files = false;
static bool reverse_flag_specified = false;
/* buffer holding the name of the rejected patch file. */
+#ifdef NAME_MAX
static char rejname[NAME_MAX + 1];
+#elif defined(PATH_MAX)
+static char rejname[PATH_MAX + 1];
+#else
+static char rejname[MAXPATHLEN + 1];
+#endif
/* buffer for stderr */
static char serrbuf[BUFSIZ];