summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-14 15:30:22 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:36 +0200
commit508b20ead1710e8c295630d096960e51a65b7e5d (patch)
tree932f692c5724193e6d17100e758c2271e0dfb2b9 /utils
parent135083090268acd6983a5d43e96c9183009c5290 (diff)
make UCLIBC_HAS_PROGRAM_INVOCATION_NAME and UCLIBC_HAS___PROGNAME independent options
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/getconf.c6
1 files changed, 2 insertions, 4 deletions
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