summaryrefslogtreecommitdiff
path: root/src/remake.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2023-01-08 18:44:25 -0500
committerPaul Smith <psmith@gnu.org>2023-01-08 18:44:25 -0500
commitb99b6cdf3c18ee96da1775f7300d463fe5fe7ebb (patch)
tree27f48ebdc15c65e5042b39aab130ac2f50a70e3e /src/remake.c
parent36f955b0e8d2c1b5be292eb84475c44eea6403c8 (diff)
downloadmake-git-b99b6cdf3c18ee96da1775f7300d463fe5fe7ebb.tar.gz
Update support for OS/2
Patches provided by KO Myung-Hun <komh78@gmail.com> * NEWS: Add a note. * AUTHORS: Add a new author. * README.OS2: Updates to build instructions. * src/dir.c (dir_contents_file_exists_p): Use a stack copy when modifying a const string. * src/job.c (construct_command_argv_internal): Ditto. Reuse variables rather than re-defining them. (exec_command): Cast a const string (we don't change it anyway). * src/getopt.c (_getopt_initialize): Reference unused variables. (_getopt_internal): Add block braces to quiet the compiler. * src/main.c (main): Cast argument to child_execute_job(). * src/posixos.c (set_blocking): Reference unused variables. * src/remake.c (f_mtime): Delete useless code.
Diffstat (limited to 'src/remake.c')
-rw-r--r--src/remake.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/remake.c b/src/remake.c
index 8e2547eb..62b3d791 100644
--- a/src/remake.c
+++ b/src/remake.c
@@ -1477,14 +1477,6 @@ 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