apply debian/patches/11_utimes.diff

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-11-03 14:07:51 +00:00
commit ac1b517350
4 changed files with 22 additions and 1 deletions

View file

@ -500,8 +500,13 @@ static void from_cache(int first)
/* update timestamps for LRU cleanup
also gives output_file a sensible mtime when hard-linking (for make) */
#ifdef HAVE_UTIMES
utimes(hashname, NULL);
utimes(stderr_file, NULL);
#else
utime(hashname, NULL);
utime(stderr_file, NULL);
#endif
if (strcmp(output_file, "/dev/null") == 0) {
ret = 0;