public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdbsupport/pathstuff.h: #include <array> explicitly for std::array<>
@ 2022-04-26 0:06 John Baldwin
0 siblings, 0 replies; only message in thread
From: John Baldwin @ 2022-04-26 0:06 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3f0423f9130cdc3a6aecbb44435ad690b3aa9e99
commit 3f0423f9130cdc3a6aecbb44435ad690b3aa9e99
Author: John Baldwin <jhb@FreeBSD.org>
Date: Mon Apr 25 17:06:09 2022 -0700
gdbsupport/pathstuff.h: #include <array> explicitly for std::array<>
This fixes build breakage using clang with libc++ on FreeBSD where
std::array<> is not yet declared when used by the path_join variadic
function template.
Diff:
---
gdbsupport/pathstuff.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gdbsupport/pathstuff.h b/gdbsupport/pathstuff.h
index c8592793886..d01db89e085 100644
--- a/gdbsupport/pathstuff.h
+++ b/gdbsupport/pathstuff.h
@@ -26,6 +26,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <array>
/* Path utilities. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-26 0:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26 0:06 [binutils-gdb] gdbsupport/pathstuff.h: #include <array> explicitly for std::array<> John Baldwin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).