From 77881a7e180f9f445fe5627e5f828964ca733dfd Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Mon, 24 Nov 2025 21:15:06 -0500 Subject: [PATCH] Enable the pthread_np.h header on OpenBSD and DragonFly Necessary for pthread_set_name_np(). --- AUTHORS | 1 + lib/base/utility.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index 672b4c474..7916bd77a 100644 --- a/AUTHORS +++ b/AUTHORS @@ -40,6 +40,7 @@ Bernd Arnold Bernd Erk Berthold Cogel Blerim Sheqa +Brad Smith Brendan Jurd Brian De Wolf Brian Dockter diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp index 1a4ac65f7..7189f5a24 100644 --- a/lib/base/utility.cpp +++ b/lib/base/utility.cpp @@ -34,9 +34,9 @@ #include #include -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) # include -#endif /* __FreeBSD__ */ +#endif /* __FreeBSD__ || __OpenBSD__ || DragonFly */ #ifdef HAVE_CXXABI_H # include