summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--storage/perfschema/my_thread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/storage/perfschema/my_thread.h b/storage/perfschema/my_thread.h
index 5ddea9b1303..c1a079ce34d 100644
--- a/storage/perfschema/my_thread.h
+++ b/storage/perfschema/my_thread.h
@@ -14,6 +14,10 @@
#include <pthread_np.h>
#endif
+#if defined(HAVE_INTEGER_PTHREAD_SELF)
+#include <cstdint>
+#endif
+
typedef pthread_key_t thread_local_key_t;
typedef pthread_t my_thread_handle;
typedef pthread_attr_t my_thread_attr_t;