--- src/cxx_supportlib/oxt/implementation.cpp.orig	2024-12-22 16:55:42 UTC
+++ src/cxx_supportlib/oxt/implementation.cpp
@@ -397,9 +397,9 @@ set_native_thread_name(const string &name) {
 
 static void
 set_native_thread_name(const string &name) {
-	#if defined(__linux__)
+	#if defined(__linux__) || defined(__FreeBSD__)
 		pthread_setname_np(pthread_self(), name.c_str());
-	#elif defined(__APPLE__) || defined(__FreeBSD__)
+	#elif defined(__APPLE__)
 		pthread_setname_np(name.c_str());
 	#endif
 }
