From 0e52d3b7cc05c7276162a130dd2da32cd2de59e5 Mon Sep 17 00:00:00 2001 From: Leorize Date: Sat, 11 Apr 2020 14:13:10 -0500 Subject: [PATCH] sys/mnttab.h: include sys/stat.h for stat64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Musl libc defined `stat64` as a macro, which causes the build to fail upon compiling os/linux/getmntany.c due to conflicts between the forward declaration and the implementation. This commit fixes that by including in "sys/mnttab.h" directly. Signed-off-by: Hiếu Lê --- lib/libspl/include/os/linux/sys/mnttab.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libspl/include/os/linux/sys/mnttab.h b/lib/libspl/include/os/linux/sys/mnttab.h index 7b30bf1d5478..093218d6853b 100644 --- a/lib/libspl/include/os/linux/sys/mnttab.h +++ b/lib/libspl/include/os/linux/sys/mnttab.h @@ -32,6 +32,7 @@ #include #include +#include #include #ifdef MNTTAB @@ -67,7 +68,6 @@ struct extmnttab { uint_t mnt_minor; }; -struct stat64; struct statfs; extern int getmntany(FILE *fp, struct mnttab *mp, struct mnttab *mpref);