diff -up ./libdm/dm_handle2path.c.tv ./libdm/dm_handle2path.c --- ./libdm/dm_handle2path.c.tv 2016-03-13 20:07:29.121798095 +0100 +++ ./libdm/dm_handle2path.c 2016-03-13 20:07:58.000969955 +0100 @@ -25,6 +25,10 @@ #ifdef linux #include "getdents.h" #endif +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> + static int getcomp(int dirfd, void *targhanp, size_t targhlen, char *bufp, size_t buflen, size_t *rlenp);