From c3862b74b104f01660423cf7ffa4b902888c81f3 Mon Sep 17 00:00:00 2001 From: Eladash Date: Thu, 5 Dec 2019 10:28:01 +0200 Subject: [PATCH] Compilation fix for NetBSD (#7067) --- Utilities/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index 7859e67464..f9c495178f 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -1714,7 +1714,7 @@ void thread_base::initialize(bool(*wait_cb)(const void*)) #elif defined(__DragonFly__) || defined(__FreeBSD__) || defined(__OpenBSD__) pthread_set_name_np(pthread_self(), m_name.get().c_str()); #elif defined(__NetBSD__) - pthread_setname_np(pthread_self(), "%s", const_cast(static_cast(m_name.get().c_str()))); + pthread_setname_np(pthread_self(), "%s", const_cast(m_name.get().c_str())); #elif !defined(_WIN32) pthread_setname_np(pthread_self(), m_name.get().substr(0, 15).c_str()); #endif