fix restrict violations in internal use of several functions
[musl] / src / linux / utimes.c
index d998b40..6ca025d 100644 (file)
@@ -1,7 +1,8 @@
 #include <sys/time.h>
+#include "fcntl.h"
 #include "syscall.h"
 
 int utimes(const char *path, const struct timeval times[2])
 {
-       return syscall(SYS_utime, path, times);
+       return __futimesat(AT_FDCWD, path, times);
 }