Skip to content

Commit 7c6ec0a

Browse files
sthibaulgrooverdan
authored andcommitted
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: 0d44792
1 parent 012e724 commit 7c6ec0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

storage/perfschema/my_thread.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
#include <pthread_np.h>
1515
#endif
1616

17+
#if defined(HAVE_INTEGER_PTHREAD_SELF)
18+
#include <cstdint>
19+
#endif
20+
1721
typedef pthread_key_t thread_local_key_t;
1822
typedef pthread_t my_thread_handle;
1923
typedef pthread_attr_t my_thread_attr_t;

0 commit comments

Comments
 (0)