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

via Openmp-commits openmp-commits at lists.llvm.org
Wed Sep 6 17:21:16 PDT 2023


Author: Brad Smith
Date: 2023-09-06T20:21:11-04:00
New Revision: fd4c80dec929d0dc00d92745ffb0f62b3ff32dd8

URL: https://github.com/llvm/llvm-project/commit/fd4c80dec929d0dc00d92745ffb0f62b3ff32dd8
DIFF: https://github.com/llvm/llvm-project/commit/fd4c80dec929d0dc00d92745ffb0f62b3ff32dd8.diff

LOG: [OpenMP] Fix gettid warnings on DragonFly (#65549)

Define __kmp_gettid() as appropriate for DragonFly.

Added: 
    

Modified: 
    openmp/runtime/src/kmp_wrapper_getpid.h

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/kmp_wrapper_getpid.h b/openmp/runtime/src/kmp_wrapper_getpid.h
index 32ede3ed715b4ac..605c802d1b92136 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