void-packages/srcpkgs/libdispatch/patches/musl.patch

13 lines
414 B
Diff

https://git.alpinelinux.org/aports/tree/community/libdispatch/getprogname-musl.patch
--- a/src/shims/getprogname.h
+++ b/src/shims/getprogname.h
@@ -37,7 +37,7 @@
static inline char *
getprogname(void)
{
-# if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
+# if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME || !(defined(__GLIBC__))
return program_invocation_short_name;
# elif defined(__ANDROID__)
return __progname;