summaryrefslogtreecommitdiff
path: root/lib/copy-file.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-04-30 00:03:50 +0200
committerBruno Haible <bruno@clisp.org>2017-04-30 10:25:02 +0200
commit06464e83f20d6dc0c68d5fe074439a2d1d3e9ebb (patch)
tree006e961f0e4d46853b05519c4f16741dac1c0db5 /lib/copy-file.c
parent8dac05d25ac9099980a9a46b6251c349909e1ac0 (diff)
downloadgnulib-06464e83f20d6dc0c68d5fe074439a2d1d3e9ebb.tar.gz
Make use of module 'utime-h'.
* modules/copy-file (Depends-on): Add utime-h. * lib/copy-file.c: Assume that <utime.h> exists. * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>. * modules/utimens (Depends-on): Add utime-h. * lib/utimens.c: Assume that <utime.h> exists.
Diffstat (limited to 'lib/copy-file.c')
-rw-r--r--lib/copy-file.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/copy-file.c b/lib/copy-file.c
index f906dfa4fc..b3f02a759c 100644
--- a/lib/copy-file.c
+++ b/lib/copy-file.c
@@ -29,11 +29,7 @@
#include <unistd.h>
#if HAVE_UTIME || HAVE_UTIMES
-# if HAVE_UTIME_H
-# include <utime.h>
-# else
-# include <sys/utime.h>
-# endif
+# include <utime.h>
#endif
#include "error.h"