From 8f1ba5cd4ff6dc1dcf682796ed41d1880aa8d19c Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Wed, 23 Mar 2011 11:02:27 +0100 Subject: utime.c,utimes.c: include headers only when needed Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/utime.c | 7 +++---- libc/sysdeps/linux/common/utimes.c | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'libc/sysdeps/linux') diff --git a/libc/sysdeps/linux/common/utime.c b/libc/sysdeps/linux/common/utime.c index c9fd1bfbb..2573e00eb 100644 --- a/libc/sysdeps/linux/common/utime.c +++ b/libc/sysdeps/linux/common/utime.c @@ -10,13 +10,12 @@ #include #include - #ifdef __NR_utime _syscall2(int, utime, const char *, file, const struct utimbuf *, times) #else -#include -#include - +# define __need_NULL +# include +# include 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 99d92027b..ac9aff53d 100644 --- a/libc/sysdeps/linux/common/utimes.c +++ b/libc/sysdeps/linux/common/utimes.c @@ -8,15 +8,14 @@ */ #include -#include #include - #ifdef __NR_utimes _syscall2(int, utimes, const char *, file, const struct timeval *, tvp) #else -#include - +# define __need_NULL +# include +# include int utimes(const char *file, const struct timeval tvp[2]) { -- cgit v1.2.3