diff options
author | joerg <joerg@pkgsrc.org> | 2009-04-29 13:41:16 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-04-29 13:41:16 +0000 |
commit | c5fa7f539f06e4bd338ac08d8ed946c58c73c867 (patch) | |
tree | 7f4371d18da6eeae4253960cb9619a36f5ea57e7 /devel/nbpatch | |
parent | 32ab80886c1db2713ef217dad5a9e29f5a5ad244 (diff) | |
download | pkgsrc-c5fa7f539f06e4bd338ac08d8ed946c58c73c867.tar.gz |
Deal with missing NAME_MAX on AIX.
Diffstat (limited to 'devel/nbpatch')
-rw-r--r-- | devel/nbpatch/files/patch.c | 8 |
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]; |