Index: util.c
--- util.c.orig
+++ util.c
@@ -305,7 +305,7 @@ void threadSignalJoin(threadT *thread) {
     if (thread->joined)
         return;
     int err = 0;
-    #ifdef __APPLE__
+    #if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
     pthread_join(thread->pthread, NULL);
     #else
     int64_t timeout = Modes.joinTimeout;
