blob: 3d3644f85fc11c0ced8969992130d1ba841ac23f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
https://sourceware.org/git/?p=valgrind.git;a=commit;h=dee222c6e818ca43ac45952fc8a020f445d98781
https://sourceware.org/git/?p=valgrind.git;a=commit;h=3155bacf26237beb65edb4a572402492b2f1b050
From dee222c6e818ca43ac45952fc8a020f445d98781 Mon Sep 17 00:00:00 2001
From: Paul Floyd <pjfloyd@wanadoo.fr>
Date: Fri, 27 Jan 2023 08:30:41 +0100
Subject: [PATCH] Bug 464859 - Build failures with GCC-13 (drd tsan_unittest)
Patch submitted by
Khem Raj <raj.khem@gmail.com>
--- a/drd/tests/tsan_thread_wrappers_pthread.h
+++ b/drd/tests/tsan_thread_wrappers_pthread.h
@@ -55,6 +55,7 @@
#define NO_TLS
#endif
+#include <cstdint>
#include <string>
using namespace std;
--
2.31.1
From 3155bacf26237beb65edb4a572402492b2f1b050 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Sat, 28 Jan 2023 21:53:44 +0100
Subject: [PATCH] tsan_thread_wrappers_pthread.h: Only include cstdint for
C++11
Fixes build on older g++.
--- 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;
--
2.31.1
|