From: Simon Marchi Date: Fri, 23 May 2025 18:00:29 +0000 (-0400) Subject: gdb: include in dwarf2/read.h X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=291b72ad02fa2881a7557954d1d9a7c83098e782;p=thirdparty%2Fbinutils-gdb.git gdb: include in dwarf2/read.h The buildbot pointed out this compilation failure on AlmaLinux, with g++ 8.5.0, which is not seen on more recent systems: CXX gdbtypes.o In file included from ../../binutils-gdb/gdb/gdbtypes.c:39: ../../binutils-gdb/gdb/dwarf2/read.h:639:8: error: ‘mutex’ in namespace ‘std’ does not name a type std::mutex dwo_files_lock; ^~~~~ ../../binutils-gdb/gdb/dwarf2/read.h:639:3: note: ‘std::mutex’ is defined in header ‘’; did you forget to ‘#include ’? ../../binutils-gdb/gdb/dwarf2/read.h:35:1: +#include ../../binutils-gdb/gdb/dwarf2/read.h:639:3: std::mutex dwo_files_lock; ^~~ Fix it by including in dwarf2/read.h. Change-Id: Iba334a3dad217c86841a5e804d0f386876f5ff2f --- diff --git a/gdb/dwarf2/read.h b/gdb/dwarf2/read.h index e676d64f2e9..b8c3a968dde 100644 --- a/gdb/dwarf2/read.h +++ b/gdb/dwarf2/read.h @@ -20,6 +20,7 @@ #ifndef GDB_DWARF2_READ_H #define GDB_DWARF2_READ_H +#include #include #include "dwarf2/abbrev.h" #include "dwarf2/unit-head.h"