https://github.com/MariaDB/server/pull/2006


Index: mariadb-10.6-10.6.5/storage/perfschema/my_thread.h
===================================================================
--- mariadb-10.6-10.6.5.orig/storage/perfschema/my_thread.h
+++ mariadb-10.6-10.6.5/storage/perfschema/my_thread.h
@@ -14,6 +14,8 @@
 #include <pthread_np.h>
 #endif
 
+#include <cstdint>
+
 typedef pthread_key_t thread_local_key_t;
 typedef pthread_t my_thread_handle;
 typedef pthread_attr_t my_thread_attr_t;
