summaryrefslogtreecommitdiff
path: root/gdbsupport
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-25 17:06:09 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-25 17:06:09 -0700
commit3f0423f9130cdc3a6aecbb44435ad690b3aa9e99 (patch)
treef18523f965a16664d2721de5f9485229ab486bba /gdbsupport
parentdf2a5f8de7dd943e0f8773c220fad000e49b78a6 (diff)
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.
Diffstat (limited to 'gdbsupport')
-rw-r--r--gdbsupport/pathstuff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdbsupport/pathstuff.h b/gdbsupport/pathstuff.h
index c859279388..d01db89e08 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. */