We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd5d730 commit d2ce9dcCopy full SHA for d2ce9dc
llvm/lib/Support/Unix/Threading.inc
@@ -29,7 +29,7 @@
29
30
#include <pthread.h>
31
32
-#if defined(__FreeBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
33
#include <pthread_np.h> // For pthread_getthreadid_np() / pthread_set_name_np()
34
#endif
35
@@ -121,7 +121,7 @@ uint64_t llvm::get_threadid() {
121
return InitSelf;
122
}();
123
return Self;
124
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
125
return uint64_t(pthread_getthreadid_np());
126
#elif defined(__NetBSD__)
127
return uint64_t(_lwp_self());
0 commit comments