mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-25 14:56:10 +03:00
base: Disable __close overloading for Musl
This commit is contained in:
parent
846505f507
commit
8a17a173de
@ -81,6 +81,7 @@ bool IsFDOwned(int fd) {
|
|||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
|
#if !defined(__MUSL__)
|
||||||
int __close(int);
|
int __close(int);
|
||||||
|
|
||||||
__attribute__((visibility("default"), noinline)) int close(int fd) {
|
__attribute__((visibility("default"), noinline)) int close(int fd) {
|
||||||
@ -88,5 +89,6 @@ __attribute__((visibility("default"), noinline)) int close(int fd) {
|
|||||||
CrashOnFdOwnershipViolation();
|
CrashOnFdOwnershipViolation();
|
||||||
return __close(fd);
|
return __close(fd);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
Loading…
Reference in New Issue
Block a user