[Openmp-commits] [openmp] [OpenMP] Fix gettid warnings on DragonFly (PR #65549)

Brad Smith via Openmp-commits openmp-commits at lists.llvm.org
Wed Sep 6 17:07:42 PDT 2023


https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/65549:

>From b4d63f45609e06c42f13bd2d24585249c66eedd9 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Wed, 6 Sep 2023 19:44:47 -0400
Subject: [PATCH] [OpenMP] Fix gettid warnings on DragonFly

Define __kmp_gettid() as appropriate for DragonFly.
---
 openmp/runtime/src/kmp_wrapper_getpid.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openmp/runtime/src/kmp_wrapper_getpid.h b/openmp/runtime/src/kmp_wrapper_getpid.h
index 32ede3ed715b4a..605c802d1b9213 100644
--- a/openmp/runtime/src/kmp_wrapper_getpid.h
+++ b/openmp/runtime/src/kmp_wrapper_getpid.h
@@ -23,7 +23,7 @@
 #if KMP_OS_DARWIN
 // OS X
 #define __kmp_gettid() pthread_mach_thread_np(pthread_self())
-#elif KMP_OS_FREEBSD
+#elif KMP_OS_FREEBSD || KMP_OS_DRAGONFLY
 #include <pthread_np.h>
 #define __kmp_gettid() pthread_getthreadid_np()
 #elif KMP_OS_NETBSD



More information about the Openmp-commits mailing list