diff options
author | Clément Chigot <chigot@adacore.com> | 2024-03-13 11:05:01 +0100 |
---|---|---|
committer | Clément Chigot <chigot@adacore.com> | 2024-03-18 12:53:42 +0100 |
commit | d0eb2625bff1387744304bdc70ec0a85a20b8a3f (patch) | |
tree | 1b8a4ff001fa4a4a8292cd8ea38d54384b028be4 | |
parent | 6549a232d25585800752007f699fb7db9fe70883 (diff) | |
download | gdb-d0eb2625bff1387744304bdc70ec0a85a20b8a3f.zip gdb-d0eb2625bff1387744304bdc70ec0a85a20b8a3f.tar.gz gdb-d0eb2625bff1387744304bdc70ec0a85a20b8a3f.tar.bz2 |
bfd: add missing include <time.h>
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, <time.h> is pulled by <sys/stat.h> already
included in bfd.h. That's why it went unnoticed.
-rw-r--r-- | bfd/bfd-in.h | 1 | ||||
-rw-r--r-- | bfd/bfd-in2.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 0ff1e2f..04e65aa 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -36,6 +36,7 @@ extern "C" { #include "symcat.h" #include <stdint.h> #include <stdbool.h> +#include <time.h> #include "diagnostics.h" #include <stdarg.h> #include <string.h> diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 29602e0..fa28688 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -44,6 +44,7 @@ extern "C" { #include "symcat.h" #include <stdint.h> #include <stdbool.h> +#include <time.h> #include "diagnostics.h" #include <stdarg.h> #include <string.h> |