aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in.h
diff options
context:
space:
mode:
authorClément Chigot <chigot@adacore.com>2024-03-13 11:05:01 +0100
committerClément Chigot <chigot@adacore.com>2024-03-18 12:53:42 +0100
commitd0eb2625bff1387744304bdc70ec0a85a20b8a3f (patch)
tree1b8a4ff001fa4a4a8292cd8ea38d54384b028be4 /bfd/bfd-in.h
parent6549a232d25585800752007f699fb7db9fe70883 (diff)
downloadgdb-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.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r--bfd/bfd-in.h1
1 files changed, 1 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>