mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-25 06:46:09 +03:00
base: Disable __close overloading in Musl
This commit is contained in:
parent
05c6ff4fb4
commit
ece3518a42
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user