diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2014-04-02 21:42:42 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2014-04-02 21:42:42 +0200 |
commit | 64a2e37a0edd0b6fadb734b98eb0d828240d485d (patch) | |
tree | 4f04702fba25e646797b6e84709b9ad56856c54d /include | |
parent | 988d78ad253913a86e1b8753b8d904c437c50c8b (diff) |
libc: Fix buglet around __progname
508b20ead1710e8c295630d096960e51a65b7e5d disentangled
program_invocation_name and __progname but forgot to make __progname
conditional on __UCLIBC_HAS___PROGNAME__, resulting in getconf
attempting to re-define __progname in case __UCLIBC_HAS___PROGNAME__ was
not defined.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/errno.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/errno.h b/include/errno.h index 7289e1a9e..4e3a81689 100644 --- a/include/errno.h +++ b/include/errno.h @@ -47,7 +47,9 @@ extern int errno; #endif #ifdef _LIBC +# ifdef __UCLIBC_HAS___PROGNAME__ extern const char *__progname, *__progname_full; +# endif #endif #if defined __USE_GNU && defined __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__ |