From 00330cd18a4ba83beabad4cb9f4215170828cd29 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 24 Apr 2021 14:35:14 -0400 Subject: sim: callback: convert time interface to 64-bit PR sim/27705 Rather than rely on time_t being the right size between the host & target, have the interface always be 64-bit. We can figure out if we need to truncate when actually outputting it to the right target. --- include/sim/callback.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/sim/callback.h') diff --git a/include/sim/callback.h b/include/sim/callback.h index 87a61df..f40385e 100644 --- a/include/sim/callback.h +++ b/include/sim/callback.h @@ -47,6 +47,7 @@ #include #include +#include /* Needed for enum bfd_endian. */ #include "bfd.h" @@ -78,7 +79,7 @@ struct host_callback_struct int (*read_stdin) ( host_callback *, char *, int); int (*rename) (host_callback *, const char *, const char *); int (*system) (host_callback *, const char *); - long (*time) (host_callback *, long *); + int64_t (*time) (host_callback *); int (*unlink) (host_callback *, const char *); int (*write) (host_callback *,int, const char *, int); int (*write_stdout) (host_callback *, const char *, int); -- cgit v1.1