diff options
author | Tom Tromey <tom@tromey.com> | 2021-04-08 08:52:50 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-04-08 14:34:42 -0600 |
commit | 32a046ab0d7717256f16f59d87438474e825fcb8 (patch) | |
tree | d3e5a42c96a4c3a4281834210cc91e5f430d2f6e /sim/ppc | |
parent | 81e6e8ae407b206def2c6840736dad0dcf75eb0b (diff) | |
download | fsf-binutils-gdb-32a046ab0d7717256f16f59d87438474e825fcb8.zip fsf-binutils-gdb-32a046ab0d7717256f16f59d87438474e825fcb8.tar.gz fsf-binutils-gdb-32a046ab0d7717256f16f59d87438474e825fcb8.tar.bz2 |
Add system includes in sim
This updates various parts of the sim to include missing system
headers. I made the includes unconditional, because other parts of
the tree are already doing this.
2021-04-08 Tom Tromey <tom@tromey.com>
* traps.c: Include stdlib.h.
* cris-tmpl.c: Include stdlib.h.
sim/erc32/ChangeLog
2021-04-08 Tom Tromey <tom@tromey.com>
* func.c: Include sys/time.h.
sim/frv/ChangeLog
2021-04-08 Tom Tromey <tom@tromey.com>
* traps.c: Include stdlib.h.
* registers.c: Include stdlib.h.
* profile.c: Include stdlib.h.
* memory.c: Include stdlib.h.
* interrupts.c: Include stdlib.h.
* frv.c: Include stdlib.h.
* cache.c: Include stdlib.h.
sim/iq2000/ChangeLog
2021-04-08 Tom Tromey <tom@tromey.com>
* iq2000.c: Include stdlib.h.
sim/m32r/ChangeLog
2021-04-08 Tom Tromey <tom@tromey.com>
* traps.c: Include stdlib.h.
* m32r.c: Include stdlib.h.
sim/ppc/ChangeLog
2021-04-08 Tom Tromey <tom@tromey.com>
* emul_unix.c: Include time.h.
Diffstat (limited to 'sim/ppc')
-rw-r--r-- | sim/ppc/ChangeLog | 4 | ||||
-rw-r--r-- | sim/ppc/emul_unix.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 910996f..269411e 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,3 +1,7 @@ +2021-04-08 Tom Tromey <tom@tromey.com> + + * emul_unix.c: Include time.h. + 2021-04-08 Simon Marchi <simon.marchi@polymtl.ca> * Makefile.in: Set ASAN_OPTIONS when running igen. diff --git a/sim/ppc/emul_unix.c b/sim/ppc/emul_unix.c index 92c3c1e..2616ae4 100644 --- a/sim/ppc/emul_unix.c +++ b/sim/ppc/emul_unix.c @@ -124,6 +124,7 @@ int getrusage(); #endif #include <stdlib.h> +#include <time.h> #if defined(BSD) && !defined(errno) && (BSD < 199306) /* here BSD as just a bug */ extern int errno; |