diff mbox

[PUSHED] Explicitly include <array> for std::array<>.

Message ID 20170905162735.94919-1-jhb@FreeBSD.org
State New
Headers show

Commit Message

John Baldwin Sept. 5, 2017, 4:27 p.m. UTC
gdb/ChangeLog:

	* unittests/array-view-selftests.c: Add include of <array>.
---
 gdb/ChangeLog                        | 4 ++++
 gdb/unittests/array-view-selftests.c | 1 +
 2 files changed, 5 insertions(+)
diff mbox

Patch

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index abded2cc4f..cef374ac64 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@ 
 2017-09-04  John Baldwin  <jhb@FreeBSD.org>
 
+	* unittests/array-view-selftests.c: Add include of <array>.
+
+2017-09-04  John Baldwin  <jhb@FreeBSD.org>
+
 	* spu-tdep.c (flush_ea_cache): Add missing argument to
 	call_function_by_hand.
 
diff --git a/gdb/unittests/array-view-selftests.c b/gdb/unittests/array-view-selftests.c
index c4c95bc7ec..e5c0043f53 100644
--- a/gdb/unittests/array-view-selftests.c
+++ b/gdb/unittests/array-view-selftests.c
@@ -20,6 +20,7 @@ 
 #include "defs.h"
 #include "selftest.h"
 #include "common/array-view.h"
+#include <array>
 
 namespace selftests {
 namespace array_view_tests {