浏览代码

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>
Bernhard Reutner-Fischer 11 年之前
父节点
当前提交
64a2e37a0e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/errno.h

+ 2 - 0
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__