summaryrefslogtreecommitdiff
path: root/lib/err.c
diff options
context:
space:
mode:
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 2731a714..d5319224 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