From: Clément Chigot Date: Wed, 13 Mar 2024 10:05:01 +0000 (+0100) Subject: bfd: add missing include X-Git-Tag: gdb-15-branchpoint~709 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d0eb2625bff1387744304bdc70ec0a85a20b8a3f;p=thirdparty%2Fbinutils-gdb.git bfd: add missing include bdfio.c is defining bfd_get_current_time which is returning a time_t. This type is defined in time.h and thus, must be included in bfd main header to avoid undefined type when include bfd.h. Note that most of the time, is pulled by already included in bfd.h. That's why it went unnoticed. --- diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 0ff1e2f3ed5..04e65aad5f0 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -36,6 +36,7 @@ extern "C" { #include "symcat.h" #include #include +#include #include "diagnostics.h" #include #include diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 29602e054da..fa28688837c 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -44,6 +44,7 @@ extern "C" { #include "symcat.h" #include #include +#include #include "diagnostics.h" #include #include