* callback.c (os_fstat): Don't declare 't' unless it's used.
authorJim Blandy <jimb@codesourcery.com>
Mon, 21 Feb 2005 21:59:54 +0000 (21:59 +0000)
committerJim Blandy <jimb@codesourcery.com>
Mon, 21 Feb 2005 21:59:54 +0000 (21:59 +0000)
sim/common/ChangeLog
sim/common/callback.c

index b7d62cd9ca24aad19f2774029b145350afc171c5..a22cc4f0c9aab0c624d29a7f0d11aaf745f39e64 100644 (file)
@@ -1,3 +1,7 @@
+2005-02-21  Jim Blandy  <jimb@redhat.com>
+
+       * callback.c (os_fstat): Don't declare 't' unless it's used.
+
 2005-02-09  Jim Blandy  <jimb@redhat.com>
 
        * Make-common.in (CGEN): Load guile.scm, and include a trailing
index 6e789a2674ed7e6fabc96cb969ef2671a1cb2a18..512590de5f0a603a8cf1617ed70b734da75b9015 100644 (file)
@@ -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.  */