From fecc6caa27971bd9c049671ddedef8c334e71062 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Mon, 22 Jun 2020 13:31:59 +1000 Subject: [PATCH] MDEV-22621: perfschema add FreeBSD include header for pthread_getthreadid_np --- storage/perfschema/my_thread.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/storage/perfschema/my_thread.h b/storage/perfschema/my_thread.h index 542035bda0f..12e01a510ed 100644 --- a/storage/perfschema/my_thread.h +++ b/storage/perfschema/my_thread.h @@ -10,6 +10,10 @@ #include #endif +#ifdef HAVE_PTHREAD_GETTHREADID_NP +#include +#endif + typedef pthread_key_t thread_local_key_t; typedef pthread_t my_thread_handle; typedef pthread_attr_t my_thread_attr_t;