gdbsupport/pathstuff.h: #include <array> explicitly for std::array<>
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 26 Apr 2022 00:06:09 +0000 (17:06 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 26 Apr 2022 00:06:09 +0000 (17:06 -0700)
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.

gdbsupport/pathstuff.h

index c8592793886e835b59126827a4b96a8b76c5038d..d01db89e085f88a7d5d41ed83ffab79950622f49 100644 (file)
@@ -26,6 +26,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
+#include <array>
 
 /* Path utilities.  */