From 508b20ead1710e8c295630d096960e51a65b7e5d Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 14 Apr 2011 15:30:22 +0200 Subject: make UCLIBC_HAS_PROGRAM_INVOCATION_NAME and UCLIBC_HAS___PROGNAME independent options Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- utils/getconf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'utils') diff --git a/utils/getconf.c b/utils/getconf.c index 4c058a080..dba4a9e8c 100644 --- a/utils/getconf.c +++ b/utils/getconf.c @@ -1053,10 +1053,8 @@ static const struct { const char *name; int num; } specs[] = }; static const int nspecs = sizeof (specs) / sizeof (specs[0]); -#ifdef __UCLIBC_HAS___PROGNAME__ -extern const char *__progname; -#else -#define __progname "foo" +#ifndef __UCLIBC_HAS___PROGNAME__ +static const char *__progname = "getconf" #endif static attribute_noreturn void -- cgit v1.2.3