pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/nbpatch/files Deal with missing NAME_MAX on AIX.
details: https://anonhg.NetBSD.org/pkgsrc/rev/c33dbc971dfb
branches: trunk
changeset: 392268:c33dbc971dfb
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Apr 29 13:41:16 2009 +0000
description:
Deal with missing NAME_MAX on AIX.
diffstat:
devel/nbpatch/files/patch.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r ff0d34c030c2 -r c33dbc971dfb devel/nbpatch/files/patch.c
--- a/devel/nbpatch/files/patch.c Wed Apr 29 12:48:24 2009 +0000
+++ b/devel/nbpatch/files/patch.c Wed Apr 29 13:41:16 2009 +0000
@@ -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 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];
Home |
Main Index |
Thread Index |
Old Index