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:
parent
1832ab71db
commit
6852289c46
2 changed files with 21 additions and 9 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue