| 1 | musl strdupa() fails to compile in c++ due to a missing cast
|
| 2 | use deadbeef's fallback version instead
|
| 3 |
|
| 4 | |
| 5 | |
| 6 | @@ -26,6 +26,10 @@
|
| 7 |
|
| 8 | #include <string.h>
|
| 9 |
|
| 10 | +#if defined(__linux__) && !defined(__GLIBC__)
|
| 11 | +# undef strdupa
|
| 12 | +#endif
|
| 13 | +
|
| 14 | #ifndef strdupa
|
| 15 | # define strdupa(s) \
|
| 16 | ({ \
|
| 17 |
|