diff options
author | Nick Clifton <nickc@redhat.com> | 2009-01-21 11:58:05 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-01-21 11:58:05 +0000 |
commit | 58f9615ce472fe0aad845951c513a4d35518149e (patch) | |
tree | 1819405b0cb7531fb9ade57d0716ca380a6409bf /bfd/vmsutil.c | |
parent | 0c3b67369a861fba0cc0459d79751aac6f5c9e93 (diff) | |
download | gdb-58f9615ce472fe0aad845951c513a4d35518149e.zip gdb-58f9615ce472fe0aad845951c513a4d35518149e.tar.gz gdb-58f9615ce472fe0aad845951c513a4d35518149e.tar.bz2 |
PR 9769
* vmsutil.c (vms_file_stats_name): Remove use of unsupported
tm_gmtoff field in struct tm.
Diffstat (limited to 'bfd/vmsutil.c')
-rw-r--r-- | bfd/vmsutil.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bfd/vmsutil.c b/bfd/vmsutil.c index 25cd889..83c4609 100644 --- a/bfd/vmsutil.c +++ b/bfd/vmsutil.c @@ -238,7 +238,6 @@ vms_file_stats_name (const char *filename, #else struct stat buff; struct tm *ts; - long gmtoff; if ((stat (filename, &buff)) != 0) return 1; @@ -246,8 +245,7 @@ vms_file_stats_name (const char *filename, if (cdt) { ts = localtime (&buff.st_mtime); - gmtoff = ts->tm_gmtoff; - *cdt = (long long) (((buff.st_mtim.tv_sec + gmtoff) * VMS_GRANULARITY_FACTOR) + *cdt = (long long) ((buff.st_mtim.tv_sec * VMS_GRANULARITY_FACTOR) + (buff.st_mtim.tv_nsec / 100)) + VMS_EPOCH_OFFSET; } |