From 829aaf800db34762f46fb268d2ab1f5595a63f5a Mon Sep 17 00:00:00 2001 From: klzgrad Date: Fri, 23 Jul 2021 21:54:20 +0800 Subject: [PATCH] base: Disable __close overloading for Musl --- src/base/files/scoped_file_linux.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/base/files/scoped_file_linux.cc b/src/base/files/scoped_file_linux.cc index 0803bf606f..cdd4c3b71d 100644 --- a/src/base/files/scoped_file_linux.cc +++ b/src/base/files/scoped_file_linux.cc @@ -81,6 +81,7 @@ bool IsFDOwned(int fd) { extern "C" { +#if !defined(__MUSL__) int __close(int); __attribute__((visibility("default"), noinline)) int close(int fd) { @@ -88,5 +89,6 @@ __attribute__((visibility("default"), noinline)) int close(int fd) { CrashOnFdOwnershipViolation(); return __close(fd); } +#endif } // extern "C"