1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/community/deadbeef/strdupa.patch
Taner Tas 509d853ad4 community/deadbeef: move from unmaintained
* take over package
* upgrade to 1.8.3
2020-04-20 07:31:56 +00:00

17 lines
430 B
Diff

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) \
({ \