aports/unmaintained/deadbeef/strdupa.patch
Kevin Daudt 199296e632 unmaintained/deafbeef: move from community
Package does not build and has no maintainer. There are not packages depending
on it.
2019-05-11 20:56:42 +00:00

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