diff --git a/trpc/admin/mutex.cc b/trpc/admin/mutex.cc index 0b8db196..7e72aae2 100644 --- a/trpc/admin/mutex.cc +++ b/trpc/admin/mutex.cc @@ -33,7 +33,7 @@ namespace trpc::admin { extern "C" { -extern void* _dl_sym(void* handle, const char* symbol, void* caller); +extern void* __attribute__((weak)) _dl_sym(void* handle, const char* symbol, void* caller); } ///////////////////////////////////////////////////////////////////////////////////