diff options
author | alaviss <[email protected]> | 2020-04-14 18:47:40 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-14 11:47:40 -0700 |
commit | 6b1139e82c0a96c267752b437a3b14f6787535ec (patch) | |
tree | a5cbe6ad8e4ac3bd006b0207daee9b9bae8f02e4 /lib | |
parent | 9f0a21e6411aa0bac23fba0ddb220342a48c7cc7 (diff) |
sys/mnttab.h: include sys/stat.h for stat64
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 <sys/stat.h> in "sys/mnttab.h"
directly.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Hiếu Lê <[email protected]>
Closes #10195
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libspl/include/os/linux/sys/mnttab.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libspl/include/os/linux/sys/mnttab.h b/lib/libspl/include/os/linux/sys/mnttab.h index 7b30bf1d5..093218d68 100644 --- a/lib/libspl/include/os/linux/sys/mnttab.h +++ b/lib/libspl/include/os/linux/sys/mnttab.h @@ -32,6 +32,7 @@ #include <stdio.h> #include <mntent.h> +#include <sys/stat.h> #include <sys/types.h> #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); |