From e6d801722fac7f10181d152115876f235bd69c56 Mon Sep 17 00:00:00 2001 From: Sinan Kaya <41809318+franksinankaya@users.noreply.github.com> Date: Tue, 26 Nov 2019 04:03:09 -0500 Subject: [PATCH] Fix friend class declaration (#268) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ 27%] Building CXX object src/pal/src/CMakeFiles/coreclrpal.dir/arch/amd64/signalhandlerhelper.cpp.o coreclr/src/pal/src/thread/thread.cpp:1613:1: error: ‘CorUnix::PAL_ERROR CorUnix::InternalSetThreadDescription(CorUnix::CPalThread*, HANDLE, PCWSTR)’ has not been declared within CorUnix [-Werror] CorUnix::InternalSetThreadDescription( ^~~~~~~ In file included from coreclr/src/pal/src/include/pal/dbgmsg.h:160:0, from coreclr/src/pal/src/thread/thread.cpp:21: coreclr/src/pal/src/include/pal/thread.hpp:204:13: note: only here as a friend InternalSetThreadDescription( --- src/coreclr/src/pal/src/include/pal/thread.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/coreclr/src/pal/src/include/pal/thread.hpp b/src/coreclr/src/pal/src/include/pal/thread.hpp index ad2948627b8..cb4cb9f9abc 100644 --- a/src/coreclr/src/pal/src/include/pal/thread.hpp +++ b/src/coreclr/src/pal/src/include/pal/thread.hpp @@ -92,6 +92,13 @@ namespace CorUnix HANDLE *phThread ); + PAL_ERROR + InternalSetThreadDescription( + CPalThread *, + HANDLE, + PCWSTR + ); + PAL_ERROR CreateThreadData( CPalThread **ppThread -- GitLab