diff options
author | Bruno Haible <bruno@clisp.org> | 2017-05-01 13:27:57 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2017-05-01 13:27:57 +0200 |
commit | 3eee3a1e3c5b8883e0d4934bfc1326ee605cb7c1 (patch) | |
tree | ae6dca2044ddd7dedae976b1f7e06d7de52fae6e /m4 | |
parent | e48f55fd7c253e0363072b6163012e5cead89b55 (diff) | |
download | gnulib-3eee3a1e3c5b8883e0d4934bfc1326ee605cb7c1.tar.gz |
copy-file: Preserve sub-second time stamps.
* lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
(qcopy_file_preserving): Use 'struct timespec' and utimens() to
transport the time stamps from the original file to the destination
file.
* m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
* modules/copy-file (Depends-on): Add stat-time, utimns instead of
utime-h.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/copy-file.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/copy-file.m4 b/m4/copy-file.m4 index 4b5db8a9ee..c29f7930a7 100644 --- a/m4/copy-file.m4 +++ b/m4/copy-file.m4 @@ -1,4 +1,4 @@ -# copy-file.m4 serial 4 +# copy-file.m4 serial 5 dnl Copyright (C) 2003, 2009-2017 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -7,5 +7,5 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_COPY_FILE], [ AC_CHECK_HEADERS_ONCE([unistd.h]) - AC_CHECK_FUNCS([chown utime utimes]) + AC_CHECK_FUNCS([chown]) ]) |