From 6c51cf513d98adcf34a342c7e9d885a6c788cda8 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 9 Nov 2020 06:55:39 -0700 Subject: Move include block to pathstuff.h A recent commit caused pathstuff.cc to fail to compile on mingw, like: ../../binutils-gdb/gdbsupport/pathstuff.cc:324:1: error: no previous declaration for 'std::string find_gdb_home_config_file(const char*, _stati64*)' [-Werror=missing-declarations] Some newly-added #includes were changing which "stat" was being seen by the compiler. This patch moves the includes to the header, so that the declaration and definition now agree. 2020-11-10 Tom Tromey PR build/26848: * pathstuff.h: Move include block here... * pathstuff.cc: ... from here. --- gdbsupport/pathstuff.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdbsupport/pathstuff.h') diff --git a/gdbsupport/pathstuff.h b/gdbsupport/pathstuff.h index 996c8f2..7e35f62 100644 --- a/gdbsupport/pathstuff.h +++ b/gdbsupport/pathstuff.h @@ -22,6 +22,10 @@ #include "gdbsupport/byte-vector.h" +#include +#include +#include + /* Path utilities. */ /* Return the real path of FILENAME, expanding all the symbolic links. -- cgit v1.1