|
From: Mark W. <ma...@so...> - 2023-01-28 20:54:52
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=3155bacf26237beb65edb4a572402492b2f1b050 commit 3155bacf26237beb65edb4a572402492b2f1b050 Author: Mark Wielaard <ma...@kl...> Date: Sat Jan 28 21:53:44 2023 +0100 tsan_thread_wrappers_pthread.h: Only include cstdint for C++11 Fixes build on older g++. Diff: --- drd/tests/tsan_thread_wrappers_pthread.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drd/tests/tsan_thread_wrappers_pthread.h b/drd/tests/tsan_thread_wrappers_pthread.h index 4cc8062069..e022e5dece 100644 --- a/drd/tests/tsan_thread_wrappers_pthread.h +++ b/drd/tests/tsan_thread_wrappers_pthread.h @@ -55,7 +55,9 @@ #define NO_TLS #endif +#if __cplusplus >= 201103L #include <cstdint> +#endif #include <string> using namespace std; |