joerg-krause writes
Building upmpdcli with the musl C library fails at libupnp/control/discover.cxx because of pthread_yield.
Instead of using the nonstandard pthread_yield call please use the standardized sched_yield.
medoc92 writes
Hi,
As far as I know, the current code on the main branch is exactly version 0.8.1 with range-for constructs suppressed, and the above fix, so it should hopefully be a suitable base for building on alternative platforms (and it will be the base for further enhancements, in which I will try to make sure that no range-fors creep back…).
Cheers,
jf
medoc92 writes
Oops, missed the stdlib inclusions in the patch you provided in the email. Will add this now.
joerg-krause writes
Don’t forget to include <sched.h >.
medoc92 writes
I added the sched.h include in the commit for the uclibc missing includes (gcc did not complain about it for some reason).