unikraft / lib-musl

musl: A C standard library
Other
9 stars 29 forks source link

Makefile.uk.musl.misc: Add `memory.h` header #69

Closed mariasfiraiala closed 1 year ago

mariasfiraiala commented 1 year ago

Sometimes, apps and libraries choose to use memory.h instead of strings.h. While musl provides this header, currently it is not included in any existent library. We include it in the misc one in order to avoid further patching the apps and libs to use string.h.

One example of such library is lib-openssl, which, for the crypto functionality, asks for memory.h:

/home/maria/arm/apps/app-helloworld/build/libssl/origin/openssl-1.1.1c/crypto/pkcs7/bio_pk7.c:15:11: fatal error: memory.h: No such file or directory
   15 | # include <memory.h>
      |           ^~~~~~~~~~
compilation terminated.
mariasfiraiala commented 1 year ago

Already handled by #55