From c5a58cd687a774f8c4b4392444edad8a6cda51ed Mon Sep 17 00:00:00 2001 From: klzgrad Date: Fri, 24 Sep 2021 23:46:21 +0800 Subject: [PATCH] base: Do not forward declare stat64 for Musl --- src/base/files/file.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/base/files/file.h b/src/base/files/file.h index f2cd03ba20..d537ac7173 100644 --- a/src/base/files/file.h +++ b/src/base/files/file.h @@ -18,8 +18,9 @@ #include "base/trace_event/base_tracing_forward.h" #include "build/build_config.h" -#if defined(OS_BSD) || defined(OS_APPLE) || defined(OS_NACL) || \ - defined(OS_FUCHSIA) || (defined(OS_ANDROID) && __ANDROID_API__ < 21) +#if defined(OS_BSD) || defined(OS_APPLE) || defined(OS_NACL) || \ + defined(OS_FUCHSIA) || (defined(OS_ANDROID) && __ANDROID_API__ < 21) || \ + defined(__MUSL__) struct stat; namespace base { typedef struct stat stat_wrapper_t;