diff --git a/src/base/files/scoped_file_linux.cc b/src/base/files/scoped_file_linux.cc index 6fd3eec6ef..2ace44a6af 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"