summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2017-02-06 13:34:19 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2017-02-06 13:34:19 +0000
commit4eabd7ec90756952ea4963cdd5d508224a7f1d29 (patch)
tree6b44fc666f8093714591e7c08b94922d24f64d88 /compat
parent50f25a8f0539caa217b34ba12f4bd4e73043165a (diff)
Do not declare program_invocation_short_name because people can't make up their
mind what type it should be.
Diffstat (limited to 'compat')
-rw-r--r--compat/getprogname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/getprogname.c b/compat/getprogname.c
index 80a496da..50afbace 100644
--- a/compat/getprogname.c
+++ b/compat/getprogname.c
@@ -16,14 +16,14 @@
#include <sys/types.h>
+#include <errno.h>
+
#include "compat.h"
#if defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME)
const char *
getprogname(void)
{
- extern char *program_invocation_short_name;
-
return (program_invocation_short_name);
}
#elif defined(HAVE___PROGNAME)