diff --git a/gzip.c b/gzip.c
index acb8b55..6889be0 100644
--- a/gzip.c
+++ b/gzip.c
@@ -1722,7 +1722,7 @@ local void copy_stat(ifstat)
         }
       }
 
-    if (gl_futimens (ofd, ofname, timespec) != 0)
+    if (fdutimens (ofd, ofname, timespec) != 0)
       {
         int e = errno;
         WARN ((stderr, "%s: ", program_name));
