aboutsummaryrefslogtreecommitdiff
path: root/www/envoy/files/patch-source_common_common_posix_thread__impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/envoy/files/patch-source_common_common_posix_thread__impl.cc')
-rw-r--r--www/envoy/files/patch-source_common_common_posix_thread__impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/envoy/files/patch-source_common_common_posix_thread__impl.cc b/www/envoy/files/patch-source_common_common_posix_thread__impl.cc
index c06b2219afda..06492ac1f65f 100644
--- a/www/envoy/files/patch-source_common_common_posix_thread__impl.cc
+++ b/www/envoy/files/patch-source_common_common_posix_thread__impl.cc
@@ -16,7 +16,7 @@
-#elif defined(__APPLE__)
+#elif defined(__FreeBSD__)
uint64_t tid;
-- pthread_threadid_np(NULL, &tid);
+- pthread_threadid_np(nullptr, &tid);
+ tid = pthread_getthreadid_np();
return tid;
#else