https://bugs.gentoo.org/717430 https://git.alpinelinux.org/aports/plain/main/dmraid/006-musl-libc.patch --- a/include/dmraid/misc.h +++ b/include/dmraid/misc.h @@ -10,6 +10,7 @@ #ifndef _MISC_H_ #define _MISC_H_ +#include #define DM_ASSERT(__cond) do { if (!(__cond)) { printf("ASSERT file:%s line:%d fuction:%s cond: %s\n", __FILE__, __LINE__, __FUNCTION__, #__cond); } } while(0); --- a/lib/device/scan.c +++ b/lib/device/scan.c @@ -10,6 +10,7 @@ # include # include #else +# include # include # include #endif