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.
This commit is contained in:
Clément Chigot 2024-03-13 11:05:01 +01:00
parent 6549a232d2
commit d0eb2625bf
2 changed files with 2 additions and 0 deletions

View File

@ -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>

View File

@ -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>