https://bugs.gentoo.org/560212 pull in headers for funcs that are used --- a/libdm/dm_handle2path.c +++ b/libdm/dm_handle2path.c @@ -20,6 +20,9 @@ #include #include "dmapi_lib.h" +#include /* open */ +#include /* close */ +#include /* strlen */ #include #include #ifdef linux