aboutsummaryrefslogtreecommitdiff
path: root/sim/common/callback.c
diff options
context:
space:
mode:
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. */