aboutsummaryrefslogtreecommitdiffstats
path: root/lib/err.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2006-12-07 00:25:39 +0100
committerKarel Zak <kzak@redhat.com>2006-12-07 00:25:39 +0100
commit7eda085c41faa3445b4b168ce78ab18dab87d98a (patch)
treeeb8da4baebd0af68fa84818d3d51b4a3714667fc /lib/err.c
parent5c36a0eb7cdb0360f9afd5d747c321f423b35984 (diff)
downloadutil-linux-7eda085c41faa3445b4b168ce78ab18dab87d98a.tar.gz
Imported from util-linux-2.9v tarball.v2.9v
Diffstat (limited to 'lib/err.c')
-rw-r--r--lib/err.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/err.c b/lib/err.c
index 2731a714fa..d531922409 100644
--- a/lib/err.c
+++ b/lib/err.c
@@ -43,9 +43,11 @@
#include <varargs.h>
#endif
+#include "../defines.h"
+#ifdef HAVE_progname
extern char *__progname; /* Program name, from crt0. */
-#ifdef __linux__
-char *__progname;
+#else
+char *__progname = "foo"; /* probably libc4 */
#endif
__dead void