From: Hurnjoo Lee Date: Mon, 21 Dec 2015 05:44:04 +0000 (+0900) Subject: Fix build error X-Git-Tag: submit/tizen/20151222.063629~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c40ba367abe40e73ec836f676ceb039842eb85e;p=product%2Fupstream%2Fgzip.git Fix build error Change-Id: Ie49c38578e0381843f1fa2fd0fb82c639c4d41ed Signed-off-by: Hurnjoo Lee --- 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]);