X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2Futimens.c;h=e5e98f7dabd2c9eb5bad599c554187853b12b970;hb=e69450077be2e9b4045c21e2ec528e5085ba4820;hp=8f4273c80876bf8216ccd77a60769948a906556d;hpb=e7921f54c622e3b32e525f345bc34308821e4ae0;p=gzip diff --git a/lib/utimens.c b/lib/utimens.c index 8f4273c..e5e98f7 100644 --- a/lib/utimens.c +++ b/lib/utimens.c @@ -1,6 +1,7 @@ /* Set file access and modification times. - Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -26,6 +27,7 @@ #include #include +#include #include #if HAVE_UTIME_H @@ -73,7 +75,7 @@ struct utimbuf Return 0 on success, -1 (setting errno) on failure. */ int -futimens (int fd ATTRIBUTE_UNUSED, +gz_futimens (int fd ATTRIBUTE_UNUSED, char const *file, struct timespec const timespec[2]) { /* Some Linux-based NFS clients are buggy, and mishandle time stamps @@ -183,5 +185,5 @@ futimens (int fd ATTRIBUTE_UNUSED, int utimens (char const *file, struct timespec const timespec[2]) { - return futimens (-1, file, timespec); + return gz_futimens (-1, file, timespec); }