I've given my best to port musl-patch but did not test build with musl. Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>