From: Samuel Thibault Date: Tue, 8 Feb 2022 00:18:27 +0000 (+0000) Subject: [PATCH] MDEV-27804 Fails to build - perf schema - thread id of type uintptr_t require... X-Git-Tag: archive/raspbian/1%10.11.8-1+rpi1~1^2^2^2^2^2^2^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a84ebe886b9a68948446d3d86f6bedf6674c5f1c;p=mariadb.git [PATCH] 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 ref: https://www.cplusplus.com/reference/cstdint/ Fixes: 0d44792a835128a83ff07f14dbbcdd621df9f7da Gbp-Pq: Name 2006-kfreebsd-amd64.patch --- diff --git a/storage/perfschema/my_thread.h b/storage/perfschema/my_thread.h index 5ddea9b13..c1a079ce3 100644 --- a/storage/perfschema/my_thread.h +++ b/storage/perfschema/my_thread.h @@ -14,6 +14,10 @@ #include #endif +#if defined(HAVE_INTEGER_PTHREAD_SELF) +#include +#endif + typedef pthread_key_t thread_local_key_t; typedef pthread_t my_thread_handle; typedef pthread_attr_t my_thread_attr_t;