From a7fbca7a7c65b976dc394eeb9088fff0f1583f94 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Thu, 19 Nov 2020 00:09:26 +0800 Subject: [PATCH] lss: 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 99a4b44491..2f220f15f9 100644 --- a/src/third_party/lss/linux_syscall_support.h +++ b/src/third_party/lss/linux_syscall_support.h @@ -141,12 +141,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 @@ -5322,6 +5324,7 @@ struct kernel_statx { #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")