From 6c40ba367abe40e73ec836f676ceb039842eb85e Mon Sep 17 00:00:00 2001 From: Hurnjoo Lee Date: Mon, 21 Dec 2015 14:44:04 +0900 Subject: [PATCH] Fix build error Change-Id: Ie49c38578e0381843f1fa2fd0fb82c639c4d41ed Signed-off-by: Hurnjoo Lee --- gzip.c | 2 +- lib/utimens.c | 4 ++-- lib/utimens.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gzip.c b/gzip.c index ec2c5d2..fc863f3 100644 --- a/gzip.c +++ b/gzip.c @@ -1637,7 +1637,7 @@ local void copy_stat(ifstat) } } - if (futimens (ofd, ofname, timespec) != 0) + if (futimens_gz (ofd, ofname, timespec) != 0) { int e = errno; WARN ((stderr, "%s: ", program_name)); diff --git a/lib/utimens.c b/lib/utimens.c index 71bc510..af7629f 100644 --- a/lib/utimens.c +++ b/lib/utimens.c @@ -75,7 +75,7 @@ struct utimbuf Return 0 on success, -1 (setting errno) on failure. */ int -futimens (int fd ATTRIBUTE_UNUSED, +futimens_gz (int fd ATTRIBUTE_UNUSED, char const *file, struct timespec const timespec[2]) { /* Some Linux-based NFS clients are buggy, and mishandle time stamps @@ -185,5 +185,5 @@ futimens (int fd ATTRIBUTE_UNUSED, int utimens (char const *file, struct timespec const timespec[2]) { - return futimens (-1, file, timespec); + return futimens_gz (-1, file, timespec); } diff --git a/lib/utimens.h b/lib/utimens.h index 0097aaa..2fb8065 100644 --- a/lib/utimens.h +++ b/lib/utimens.h @@ -1,3 +1,3 @@ #include -int futimens (int, char const *, struct timespec const [2]); +int futimens_gz (int, char const *, struct timespec const [2]); int utimens (char const *, struct timespec const [2]); -- 2.34.1