2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

Workaround: change timestamp of 0, to 1, so that Jam does not consider

file as missing. This is needed because /cygdrive on cygwin has the
zero timestamp.

* new/fileunix.c
  (file_time): The above change.


[SVN r18256]
This commit is contained in:
Vladimir Prus
2003-04-16 10:01:17 +00:00
parent a72ae448b9
commit 784c48029b
2 changed files with 14 additions and 2 deletions

View File

@@ -182,7 +182,13 @@ file_time(
if( stat( filename, &statbuf ) < 0 )
return -1;
*time = statbuf.st_mtime;
/* Technically, existing files can have 0 as statbuf.st_mtime
--- in particular, the /cygdrive directory under cygwin. However,
though all the code jam assumes that timestamp of 0 means
"does not exist" and will try to create the "missing" target, causing
problems. Work around this problem by chanding 0 to 1.
*/
*time = statbuf.st_mtime ? statbuf.st_mtime : 1 ;
return 0;
}

View File

@@ -182,7 +182,13 @@ file_time(
if( stat( filename, &statbuf ) < 0 )
return -1;
*time = statbuf.st_mtime;
/* Technically, existing files can have 0 as statbuf.st_mtime
--- in particular, the /cygdrive directory under cygwin. However,
though all the code jam assumes that timestamp of 0 means
"does not exist" and will try to create the "missing" target, causing
problems. Work around this problem by chanding 0 to 1.
*/
*time = statbuf.st_mtime ? statbuf.st_mtime : 1 ;
return 0;
}