mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 01:53:38 +08:00
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:
parent
6549a232d2
commit
d0eb2625bf
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user