build: Avoid naming conflict in fstatat64

Supports OpenWrt builds.
This commit is contained in:
klzgrad 2020-11-19 00:09:26 +08:00
parent 6f7946adc2
commit 8b8234a93a

View File

@ -140,12 +140,14 @@ extern "C" {
#pragma push_macro("stat64") #pragma push_macro("stat64")
#pragma push_macro("fstat64") #pragma push_macro("fstat64")
#pragma push_macro("lstat64") #pragma push_macro("lstat64")
#pragma push_macro("fstatat64")
#pragma push_macro("pread64") #pragma push_macro("pread64")
#pragma push_macro("pwrite64") #pragma push_macro("pwrite64")
#pragma push_macro("getdents64") #pragma push_macro("getdents64")
#undef stat64 #undef stat64
#undef fstat64 #undef fstat64
#undef lstat64 #undef lstat64
#undef fstatat64
#undef pread64 #undef pread64
#undef pwrite64 #undef pwrite64
#undef getdents64 #undef getdents64
@ -4546,6 +4548,7 @@ struct kernel_statfs {
#pragma pop_macro("stat64") #pragma pop_macro("stat64")
#pragma pop_macro("fstat64") #pragma pop_macro("fstat64")
#pragma pop_macro("lstat64") #pragma pop_macro("lstat64")
#pragma pop_macro("fstatat64")
#pragma pop_macro("pread64") #pragma pop_macro("pread64")
#pragma pop_macro("pwrite64") #pragma pop_macro("pwrite64")
#pragma pop_macro("getdents64") #pragma pop_macro("getdents64")