From b9ac8cdfa00dfb34ac308cf254db89be37424808 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sun, 4 Jun 2023 09:15:13 +0800 Subject: [PATCH] openwrt: base: Fix broken overloading of libc close in static build --- src/base/files/scoped_file_linux.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/base/files/scoped_file_linux.cc b/src/base/files/scoped_file_linux.cc index 5074ef4d90..9c00f893ae 100644 --- a/src/base/files/scoped_file_linux.cc +++ b/src/base/files/scoped_file_linux.cc @@ -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