In commit b1418ed14 (lib/path: add ul_path_stat(), fix absolute paths, 2019-10-15), a new function `ul_path_stat()` was added to "path.h". This new function prototype causes a compiler warning on musl libc based systems due to one of the parameters having the unknown type `struct stat` due to the <sys/stat.h> header not being included. Fix the warning by including the header. Signed-off-by: Patrick Steinhardt <ps@xxxxxx> --- include/path.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/path.h b/include/path.h index 1378a8857..a9bab6dbe 100644 --- a/include/path.h +++ b/include/path.h @@ -3,6 +3,7 @@ #include <stdio.h> #include <stdint.h> +#include <sys/stat.h> #include <sys/types.h> #include <dirent.h> -- 2.23.0