openwrt: base: Fix broken overloading of libc close in static build
parent
68cdc363ef
commit
c955c59fcd
|
@ -82,6 +82,7 @@ bool IsFDOwned(int fd) {
|
||||||
|
|
||||||
} // namespace base
|
} // namespace base
|
||||||
|
|
||||||
|
#ifndef OPENWRT_BUILD_STATIC
|
||||||
#if !defined(COMPONENT_BUILD)
|
#if !defined(COMPONENT_BUILD)
|
||||||
using LibcCloseFuncPtr = int (*)(int);
|
using LibcCloseFuncPtr = int (*)(int);
|
||||||
|
|
||||||
|
@ -114,3 +115,4 @@ __attribute__((visibility("default"), noinline)) int close(int fd) {
|
||||||
|
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
#endif // !defined(COMPONENT_BUILD)
|
#endif // !defined(COMPONENT_BUILD)
|
||||||
|
#endif // OPENWRT_BUILD_STATIC
|
||||||
|
|
Loading…
Reference in New Issue