diff --git a/src/base/files/scoped_file_linux.cc b/src/base/files/scoped_file_linux.cc index 26bc18e62a..d5a6bedb87 100644 --- a/src/base/files/scoped_file_linux.cc +++ b/src/base/files/scoped_file_linux.cc @@ -80,6 +80,7 @@ bool IsFDOwned(int fd) { extern "C" { +#if !defined(__UCLIBC__) int __close(int); __attribute__((visibility("default"), noinline)) int close(int fd) { @@ -87,5 +88,6 @@ __attribute__((visibility("default"), noinline)) int close(int fd) { CrashOnFdOwnershipViolation(); return __close(fd); } +#endif } // extern "C"