aboutsummaryrefslogtreecommitdiffstats
path: root/community/deadbeef/strdupa.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/deadbeef/strdupa.patch')
-rw-r--r--community/deadbeef/strdupa.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/deadbeef/strdupa.patch b/community/deadbeef/strdupa.patch
new file mode 100644
index 00000000000..dd0a60c17d1
--- /dev/null
+++ b/community/deadbeef/strdupa.patch
@@ -0,0 +1,17 @@
+musl strdupa() fails to compile in c++ due to a missing cast
+use deadbeef's fallback version instead
+
+--- a/strdupa.h
++++ b/strdupa.h
+@@ -26,6 +26,10 @@
+
+ #include <string.h>
+
++#if defined(__linux__) && !defined(__GLIBC__)
++# undef strdupa
++#endif
++
+ #ifndef strdupa
+ # define strdupa(s) \
+ ({ \
+