aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/deadbeef/strdupa.patch
blob: dd0a60c17d16aaf308f059dea5656453f9328e78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)                                                          \
     ({                                                                       \