]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/path: fix missing header for `struct stat`
authorPatrick Steinhardt <ps@pks.im>
Thu, 17 Oct 2019 06:00:31 +0000 (08:00 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 17 Oct 2019 10:46:33 +0000 (12:46 +0200)
commitb2a1a69155c04d602801f7ab346a2b00ab895f43
tree532c1f0a537ab8d24558d089d5f6bfdace81a2ed
parentc8a5422a7a1050a8647d1f320913ed17428485b0
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 <sys/stat.h> header not being included.

Fix the warning by including the header.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
include/path.h