diff --git a/src/thread/thread.c b/src/thread/thread.c index c3e16af8e..281cb2fa7 100644 --- a/src/thread/thread.c +++ b/src/thread/thread.c @@ -94,6 +94,8 @@ static int handler(void *p) #elif defined(HAVE_PTHREAD) #if defined(OPENBSD) (void)pthread_set_name_np(*th.thr, th.name); +#elif defined(__NetBSD__) + (void)pthread_setname_np(*th.thr, "%s", th.name); #else (void)pthread_setname_np(*th.thr, th.name); #endif