diff options
-rw-r--r-- | contrib/gdb/gdb/callback.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/gdb/gdb/callback.c b/contrib/gdb/gdb/callback.c index d59ecda..c5224c6 100644 --- a/contrib/gdb/gdb/callback.c +++ b/contrib/gdb/gdb/callback.c @@ -248,7 +248,12 @@ os_time (p, t) host_callback *p; long *t; { - return wrap (p, time (t)); + time_t now; + + wrap (p, (int) time (&now)); + if (t != NULL) + *t = (long) now; + return (long) now; } |