Add OpenHarmony compatibility patches to musl. This is a port of the OpenHarmony 3.1 patches as found in https://gitlab.eclipse.org/esben/meta-openharmony/-/tree/wip/oh-3.1/recipes-core/musl commit d06ff8b5d165b862298a756799dbc641cb68b1c5 to current musl.
The patches should be harmless. Their effects:
The patches don't look like they will cause trouble.
If there is anything that uses mallinfo() or mallinfo2() with autoconf/cmake/meson checks (didn't find anything at a quick look), we might want to disable those stubs - not having those calls is preferable over having them return bogus values).
Signed-off-by: Bernhard Rosenkränzer email@example.com