packages/libs/p11-kit/patches/010-uclibc.patch
Rosen Penev f443d9eb13
p11-kit: Fix compilation with uClibc-ng
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-07-01 11:13:31 -07:00

15 lines
402 B
Diff

--- 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;