openwrt: base: Fix broken overloading of libc close in static build

This commit is contained in:
klzgrad 2023-06-04 09:15:13 +08:00
parent 76caed6e4e
commit b9ac8cdfa0

View File

@ -82,6 +82,7 @@ bool IsFDOwned(int fd) {
} // namespace base
#ifndef OPENWRT_BUILD_STATIC
#if !defined(COMPONENT_BUILD)
using LibcCloseFuncPtr = int (*)(int);
@ -113,3 +114,4 @@ __attribute__((visibility("default"), noinline)) int close(int fd) {
} // extern "C"
#endif // !defined(COMPONENT_BUILD)
#endif // OPENWRT_BUILD_STATIC