On 2014/12/07 22:40, Jörg Krause <[email protected]> wrote: > This patch fix a build error with the musl C library. The patch is originally > taken from Alpine Linux: > http://git.alpinelinux.org/cgit/aports/tree/main/mpd/fix-musl.patch. > > musl declares pthread_equal both as a macro and as a function. Without the > parentheses the preprocessor expands pthread_equal to ::((id)==(other.id)) > which obviously fails. > > Using parentheses prevents the preprocessor from expansion and the compiler > looks up for the function declaration of pthread_equal in the global > namespace.
I found it simpler to just drop the "::". It is sad that musl uses macros to implement the standard C API, though. _______________________________________________ mpd-devel mailing list [email protected] http://mailman.blarg.de/listinfo/mpd-devel
