1 From 9b18a98614a9f201b0883c2b15e7c7bde0aa0ff2 Mon Sep 17 00:00:00 2001
2 From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3 Date: Sun, 5 Feb 2017 17:12:00 +0100
4 Subject: [PATCH] compat: don't re-define program_invocation_short_name
6 program_invocation_short_name is defined in errno.h, and its definition
7 can differ between the various C libraries: glibc defines it as:
8 extern char *program_invocation_short_name;
10 while uClibc defines it as:
11 extern const char *program_invocation_short_name;
13 So there is not simple solution to know the prototype.
15 But since it is defined in errno.h, there is no reason to try and define
16 it ourselves; let's just trust what the header provides.
18 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
20 compat/getprogname.c | 3 +--
21 1 file changed, 1 insertion(+), 2 deletions(-)
23 diff --git a/compat/getprogname.c b/compat/getprogname.c
24 index 80a496d..ad619fc 100644
25 --- a/compat/getprogname.c
26 +++ b/compat/getprogname.c
30 #if defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME)
35 - extern char *program_invocation_short_name;
37 return (program_invocation_short_name);
39 #elif defined(HAVE___PROGNAME)