mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-02-23 18:33:22 +03:00
openwrt: base: Fix broken overloading of libc close in static build
This commit is contained in:
parent
3825f1b3eb
commit
c3e6fa8d25
@ -82,6 +82,7 @@ bool IsFDOwned(int fd) {
|
||||
|
||||
} // namespace base
|
||||
|
||||
#ifndef OPENWRT_BUILD_STATIC
|
||||
#if !defined(COMPONENT_BUILD)
|
||||
using LibcCloseFuncPtr = int (*)(int);
|
||||
|
||||
@ -114,3 +115,4 @@ __attribute__((visibility("default"), noinline)) int close(int fd) {
|
||||
|
||||
} // extern "C"
|
||||
#endif // !defined(COMPONENT_BUILD)
|
||||
#endif // OPENWRT_BUILD_STATIC
|
||||
|
Loading…
x
Reference in New Issue
Block a user