aboutsummaryrefslogtreecommitdiff
path: root/sim/common/callback.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2005-02-21 21:59:54 +0000
committerJim Blandy <jimb@codesourcery.com>2005-02-21 21:59:54 +0000
commit0c4507fdbef5c4c32088577dc7cdaa211d856896 (patch)
tree53f7f4364b7c028333b63f87b9d137c425612067 /sim/common/callback.c
parent26bf4e330265441614b7cace1446007d0da3a909 (diff)
downloadgdb-0c4507fdbef5c4c32088577dc7cdaa211d856896.zip
gdb-0c4507fdbef5c4c32088577dc7cdaa211d856896.tar.gz
gdb-0c4507fdbef5c4c32088577dc7cdaa211d856896.tar.bz2
* callback.c (os_fstat): Don't declare 't' unless it's used.
Diffstat (limited to 'sim/common/callback.c')
-rw-r--r--sim/common/callback.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/common/callback.c b/sim/common/callback.c
index 6e789a2..512590d 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. */