about summary refs log tree commit diff
path: root/sysdeps/posix/utimes.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/utimes.c')
-rw-r--r--sysdeps/posix/utimes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/posix/utimes.c b/sysdeps/posix/utimes.c
index ca542c68b1..2c92803cbc 100644
--- a/sysdeps/posix/utimes.c
+++ b/sysdeps/posix/utimes.c
@@ -16,6 +16,7 @@ License along with the GNU C Library; see the file COPYING.LIB.  If
 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
 Cambridge, MA 02139, USA.  */
 
+#include <utime.h>
 #include <sys/time.h>
 #include <errno.h>
 #include <stddef.h>
@@ -36,7 +37,7 @@ __utimes (const char *file, struct timeval tvp[2])
   else
     times = NULL;
 
-  return utime (path, times);
+  return utime (file, times);
 }
 
 weak_alias (__utimes, utimes)