]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bfd: add missing include <time.h>
authorClément Chigot <chigot@adacore.com>
Wed, 13 Mar 2024 10:05:01 +0000 (11:05 +0100)
committerClément Chigot <chigot@adacore.com>
Mon, 18 Mar 2024 11:53:42 +0000 (12:53 +0100)
commitd0eb2625bff1387744304bdc70ec0a85a20b8a3f
tree1b8a4ff001fa4a4a8292cd8ea38d54384b028be4
parent6549a232d25585800752007f699fb7db9fe70883
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.
bfd/bfd-in.h
bfd/bfd-in2.h