From 461b5b19fb50a16d38c5e422afba108af7fb35d7 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 a264d930de..7c1cb68668 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;