aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/deadbeef/strdupa.patch
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2019-05-11 20:56:42 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2019-05-11 20:56:42 +0000
commit199296e63294be05bd25c20e8e648e8817fc0272 (patch)
treebba47b976e53f3bd32094a4afa4b53eccf5a000c /unmaintained/deadbeef/strdupa.patch
parent307c5c8a2103c8df5728af51929d622f1c22761d (diff)
downloadaports-199296e63294be05bd25c20e8e648e8817fc0272.tar.bz2
aports-199296e63294be05bd25c20e8e648e8817fc0272.tar.xz
unmaintained/deafbeef: move from community
Package does not build and has no maintainer. There are not packages depending on it.
Diffstat (limited to 'unmaintained/deadbeef/strdupa.patch')
-rw-r--r--unmaintained/deadbeef/strdupa.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/unmaintained/deadbeef/strdupa.patch b/unmaintained/deadbeef/strdupa.patch
new file mode 100644
index 0000000000..dd0a60c17d
--- /dev/null
+++ b/unmaintained/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) \
+ ({ \
+