From 6336530a9c6112ea6a329eb34f95314bace9a10c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Wed, 10 Feb 2021 18:08:36 -0300 Subject: [PATCH] Fix argp-help.c. It tried to use an __argp_basename function, which was defined to program_invocation_short_name. The function definition should have been gated. This patch may be upstreamable to glibc. --- argp-help.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/argp-help.c b/argp-help.c index 0992ee0..a12367b 100644 --- a/argp-help.c +++ b/argp-help.c @@ -1683,7 +1683,7 @@ void __argp_help (const struct argp *argp, FILE *stream, weak_alias (__argp_help, argp_help) #endif -#if 1 +#if !HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME char *__argp_basename (char *name) { char *short_name = strrchr (name, '/'); @@ -1857,7 +1857,7 @@ __argp_failure_internal (const struct argp_state *state, int status, #endif } -#ifdef 0 +#if 0 if (_IO_fwide (stream, 0) > 0) putwc_unlocked (L'\n', stream); else