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;