From: Patrick Steinhardt Date: Thu, 17 Oct 2019 06:00:31 +0000 (+0200) Subject: lib/path: fix missing header for `struct stat` X-Git-Tag: v2.35-rc1~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2a1a69155c04d602801f7ab346a2b00ab895f43;p=thirdparty%2Futil-linux.git lib/path: fix missing header for `struct stat` 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 header not being included. Fix the warning by including the header. Signed-off-by: Patrick Steinhardt --- diff --git a/include/path.h b/include/path.h index 1378a88576..a9bab6dbe0 100644 --- a/include/path.h +++ b/include/path.h @@ -3,6 +3,7 @@ #include #include +#include #include #include