mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-04-13 06:01:03 +00:00
base: Disable __close overloading for Musl
This commit is contained in:
parent
8d3760a061
commit
9a6f1688fa
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,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) {
|
||||||
|
@ -87,5 +88,6 @@ __attribute__((visibility("default"), noinline)) int close(int fd) {
|
||||||
CrashOnFdOwnershipViolation();
|
CrashOnFdOwnershipViolation();
|
||||||
return __close(fd);
|
return __close(fd);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
|
Loading…
Add table
Reference in a new issue