From c95b6b1bb6f63e70fcf0c1eb522194bc2ab65778 Mon Sep 17 00:00:00 2001 From: v-zhangxiaomeng5 Date: Mon, 19 Jan 2026 20:41:16 +0800 Subject: [PATCH] libxx: fix __config_site for libcxx compile errors The errors are 'No thread API' and '__ULong undefined' Signed-off-by: v-zhangxiaomeng5 --- libs/libxx/__config_site | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libs/libxx/__config_site b/libs/libxx/__config_site index 26aac033f47..f305d6ffd3e 100644 --- a/libs/libxx/__config_site +++ b/libs/libxx/__config_site @@ -18,7 +18,7 @@ /* #undef _LIBCPP_HAS_NO_THREADS */ /* #undef _LIBCPP_HAS_NO_MONOTONIC_CLOCK */ /* #undef _LIBCPP_HAS_MUSL_LIBC */ -/* #undef _LIBCPP_HAS_THREAD_API_PTHREAD */ +#define _LIBCPP_HAS_THREAD_API_PTHREAD 1 /* #undef _LIBCPP_HAS_THREAD_API_EXTERNAL */ /* #undef _LIBCPP_HAS_THREAD_API_WIN32 */ /* #undef _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS */ @@ -56,13 +56,14 @@ # pragma clang diagnostic ignored "-Wmacro-redefined" #endif - - - #ifdef __clang__ # pragma clang diagnostic pop #endif #define _SYS_REENT_H_ +#ifndef __ULong +#define __ULong unsigned long +#endif + #endif // _LIBCPP___CONFIG_SITE