diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-02-08 00:18:27 +0000 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2022-02-11 14:40:46 +1100 |
commit | 7c6ec0a53be807ee13c93bb7e6826fa2ce3b29a9 (patch) | |
tree | 2c5e2b7da21bf1125650c8ad01d6657409f0006b /storage/perfschema | |
parent | 012e724debdb9e95ed8dc79056c113d5efcc25e4 (diff) | |
download | mariadb-git-7c6ec0a53be807ee13c93bb7e6826fa2ce3b29a9.tar.gz |
MDEV-27804 Fails to build - perf schema - thread id of type uintptr_t requires header
While building on GNU/Hurd and kfreebsd.
On the C++ standard uintptr_t can be defined in <cstdint>
ref: https://www.cplusplus.com/reference/cstdint/
Fixes: 0d44792a835128a83ff07f14dbbcdd621df9f7da
Diffstat (limited to 'storage/perfschema')
-rw-r--r-- | storage/perfschema/my_thread.h | 4 |
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; |