summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/utimes.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/utimes.c')
-rw-r--r--libc/sysdeps/linux/common/utimes.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/utimes.c b/libc/sysdeps/linux/common/utimes.c
index 99d92027b..ac9aff53d 100644
--- a/libc/sysdeps/linux/common/utimes.c
+++ b/libc/sysdeps/linux/common/utimes.c
@@ -8,15 +8,14 @@
*/
#include <sys/syscall.h>
-#include <utime.h>
#include <sys/time.h>
-
#ifdef __NR_utimes
_syscall2(int, utimes, const char *, file, const struct timeval *, tvp)
#else
-#include <stdlib.h>
-
+# define __need_NULL
+# include <stddef.h>
+# include <utime.h>
int utimes(const char *file, const struct timeval tvp[2])
{