base: Disable __close overloading for Musl

This commit is contained in:
klzgrad 2021-07-23 21:54:20 +08:00
parent c219540ed5
commit 18c1ac9982

View File

@ -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"