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/8b08b35f66c7
branches:  trunk
changeset: 558120:8b08b35f66c7
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 3399000d7d60 -r 8b08b35f66c7 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