From 5d50672ee68f458c12688ed9771e6dda806f213a Mon Sep 17 00:00:00 2001
From: Peter S. Mazinger <ps.m@gmx.net>
Date: Wed, 23 Mar 2011 11:02:27 +0100
Subject: [PATCH 167/396] utime.c,utimes.c: include headers only when needed

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
---
 libc/sysdeps/linux/common/utime.c  |    7 +++----
 libc/sysdeps/linux/common/utimes.c |    7 +++----
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/libc/sysdeps/linux/common/utime.c b/libc/sysdeps/linux/common/utime.c
index c9fd1bf..2573e00 100644
--- a/libc/sysdeps/linux/common/utime.c
+++ b/libc/sysdeps/linux/common/utime.c
@@ -10,13 +10,12 @@
 #include <sys/syscall.h>
 #include <utime.h>
 
-
 #ifdef __NR_utime
 _syscall2(int, utime, const char *, file, const struct utimbuf *, times)
 #else
-#include <stdlib.h>
-#include <sys/time.h>
-
+# define __need_NULL
+# include <stddef.h>
+# include <sys/time.h>
 
 int utime(const char *file, const struct utimbuf *times)
 {
diff --git a/libc/sysdeps/linux/common/utimes.c b/libc/sysdeps/linux/common/utimes.c
index 99d9202..ac9aff5 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])
 {
-- 
1.7.0.4

