From 8b8234a93a3a3ef90768b4952d4c002da62834cf Mon Sep 17 00:00:00 2001 From: klzgrad Date: Thu, 19 Nov 2020 00:09:26 +0800 Subject: [PATCH] build: Avoid naming conflict in fstatat64 Supports OpenWrt builds. --- src/third_party/lss/linux_syscall_support.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/third_party/lss/linux_syscall_support.h b/src/third_party/lss/linux_syscall_support.h index e4ac22644c..4a580f49e0 100644 --- a/src/third_party/lss/linux_syscall_support.h +++ b/src/third_party/lss/linux_syscall_support.h @@ -140,12 +140,14 @@ extern "C" { #pragma push_macro("stat64") #pragma push_macro("fstat64") #pragma push_macro("lstat64") +#pragma push_macro("fstatat64") #pragma push_macro("pread64") #pragma push_macro("pwrite64") #pragma push_macro("getdents64") #undef stat64 #undef fstat64 #undef lstat64 +#undef fstatat64 #undef pread64 #undef pwrite64 #undef getdents64 @@ -4546,6 +4548,7 @@ struct kernel_statfs { #pragma pop_macro("stat64") #pragma pop_macro("fstat64") #pragma pop_macro("lstat64") +#pragma pop_macro("fstatat64") #pragma pop_macro("pread64") #pragma pop_macro("pwrite64") #pragma pop_macro("getdents64")