1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Use lutimes() if available to canonicalise the timestamp of symlinks

Also use utimes() instead of utime() if lutimes() is not available.
This commit is contained in:
Eelco Dolstra 2012-07-23 16:52:25 -04:00
parent 1832ab71db
commit 6852289c46
2 changed files with 21 additions and 9 deletions

View file

@ -115,6 +115,11 @@ AC_CHECK_HEADERS([sys/mount.h], [], [],
])
# Check for lutimes, optionally used for changing the mtime of
# symlinks.
AC_CHECK_FUNCS([lutimes])
# Check for <locale>.
AC_LANG_PUSH(C++)
AC_CHECK_HEADERS([locale])