* callback.c (os_fstat): Don't declare 't' unless it's used.
[binutils.git] / sim / common / callback.c
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.  */
This page took 0.024548 seconds and 4 git commands to generate.