1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

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: 0d44792a83
This commit is contained in:
Samuel Thibault
2022-02-08 00:18:27 +00:00
committed by Daniel Black
parent 012e724deb
commit 7c6ec0a53b

View File

@@ -14,6 +14,10 @@
#include <pthread_np.h> #include <pthread_np.h>
#endif #endif
#if defined(HAVE_INTEGER_PTHREAD_SELF)
#include <cstdint>
#endif
typedef pthread_key_t thread_local_key_t; typedef pthread_key_t thread_local_key_t;
typedef pthread_t my_thread_handle; typedef pthread_t my_thread_handle;
typedef pthread_attr_t my_thread_attr_t; typedef pthread_attr_t my_thread_attr_t;