diff options
author | Paul Smith <psmith@gnu.org> | 2003-03-24 23:14:15 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2003-03-24 23:14:15 +0000 |
commit | 4068c5e4a3eb0f47ec3cb4ee4fad5dd2edb9de6f (patch) | |
tree | e65ea91d7e7e0da97075c48aa69db62d8ec19af9 /remake.c | |
parent | 1fa3db14684b18e50383be6a83a1f17f716b0788 (diff) | |
download | gunmake-4068c5e4a3eb0f47ec3cb4ee4fad5dd2edb9de6f.tar.gz |
Add support for OS/2, contributed by Andreas Buening <andreas.buening@nexgo.de>
Also a small patch from Hartmut Becker <Hartmut.Becker@compaq.com> for VMS.
Diffstat (limited to 'remake.c')
-rw-r--r-- | remake.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1200,6 +1200,14 @@ f_mtime (struct file *file, int search) FILE_TIMESTAMP adjustment = FAT_ADJ_OFFSET << FILE_TIMESTAMP_LO_BITS; if (ORDINARY_MTIME_MIN + adjustment <= adjusted_mtime) adjusted_mtime -= adjustment; +#elif defined(__EMX__) + /* FAT filesystems round time to the nearest even second! + Allow for any file (NTFS or FAT) to perhaps suffer from this + brain damage. */ + FILE_TIMESTAMP adjustment = (((FILE_TIMESTAMP_S (adjusted_mtime) & 1) == 0 + && FILE_TIMESTAMP_NS (adjusted_mtime) == 0) + ? (FILE_TIMESTAMP) 1 << FILE_TIMESTAMP_LO_BITS + : 0); #endif /* If the file's time appears to be in the future, update our |