From: Jim Blandy Date: Mon, 21 Feb 2005 21:59:54 +0000 (+0000) Subject: * callback.c (os_fstat): Don't declare 't' unless it's used. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c4507fdbef5c4c32088577dc7cdaa211d856896;p=binutils-gdb.git * callback.c (os_fstat): Don't declare 't' unless it's used. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index b7d62cd9ca2..a22cc4f0c9a 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2005-02-21 Jim Blandy + + * callback.c (os_fstat): Don't declare 't' unless it's used. + 2005-02-09 Jim Blandy * Make-common.in (CGEN): Load guile.scm, and include a trailing diff --git a/sim/common/callback.c b/sim/common/callback.c index 6e789a2674e..512590de5f0 100644 --- a/sim/common/callback.c +++ b/sim/common/callback.c @@ -534,7 +534,9 @@ os_fstat (p, fd, buf) if (p->ispipe[fd]) { +#if defined (HAVE_STRUCT_STAT_ST_ATIME) || defined (HAVE_STRUCT_STAT_ST_CTIME) || defined (HAVE_STRUCT_STAT_ST_MTIME) time_t t = (*p->time) (p, NULL); +#endif /* We have to fake the struct stat contents, since the pipe is made up in the simulator. */