From 4cc45079c57f5fbb5b85ef8017210d7956352d4d 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 8d4e4d2a18..dd6c863c47 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 @@ -4855,6 +4857,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")