p11-kit: Fix compilation with uClibc-ng

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2019-07-01 11:13:31 -07:00
parent 8897ea4d51
commit f443d9eb13
2 changed files with 17 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
--- a/common/compat.c
+++ b/common/compat.c
@@ -97,8 +97,12 @@
#include <unistd.h>
#if defined (HAVE_PROGRAM_INVOCATION_SHORT_NAME) && !HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
+#ifdef __UCLIBC__
+extern const char *program_invocation_short_name;
+#else
extern char *program_invocation_short_name;
#endif
+#endif
#if defined (HAVE___PROGNAME) && !HAVE_DECL___PROGNAME
extern char *__progname;