From 2512c847453c24b928c34beed88902fbb6877b7a Mon Sep 17 00:00:00 2001
From: Eric Andersen <andersen@codepoet.org>
Date: Thu, 27 Sep 2001 05:24:26 +0000
Subject: Update to accomodate the header file changes

---
 libc/misc/time/ctime.c       | 1 +
 libc/misc/time/ctime_r.c     | 1 +
 libc/misc/time/localtime.c   | 1 +
 libc/misc/time/localtime_r.c | 1 +
 libc/misc/time/utimes.c      | 5 +++--
 5 files changed, 7 insertions(+), 2 deletions(-)

(limited to 'libc/misc/time')

diff --git a/libc/misc/time/ctime.c b/libc/misc/time/ctime.c
index ddcde6111..8783d284e 100644
--- a/libc/misc/time/ctime.c
+++ b/libc/misc/time/ctime.c
@@ -1,5 +1,6 @@
 
 #include <time.h>
+#include <sys/time.h>
 
 extern void __tm_conv();
 extern void __asctime();
diff --git a/libc/misc/time/ctime_r.c b/libc/misc/time/ctime_r.c
index 85677b681..b608098ae 100644
--- a/libc/misc/time/ctime_r.c
+++ b/libc/misc/time/ctime_r.c
@@ -1,5 +1,6 @@
 
 #include <time.h>
+#include <sys/time.h>
 
 extern void __tm_conv();
 extern void __asctime();
diff --git a/libc/misc/time/localtime.c b/libc/misc/time/localtime.c
index 1f538ab7a..bedbb8ea7 100644
--- a/libc/misc/time/localtime.c
+++ b/libc/misc/time/localtime.c
@@ -1,5 +1,6 @@
 
 #include <time.h>
+#include <sys/time.h>
 
 extern void __tm_conv();
 
diff --git a/libc/misc/time/localtime_r.c b/libc/misc/time/localtime_r.c
index d084f2b1e..139864506 100644
--- a/libc/misc/time/localtime_r.c
+++ b/libc/misc/time/localtime_r.c
@@ -1,5 +1,6 @@
 
 #include <time.h>
+#include <sys/time.h>
 
 extern void __tm_conv();
 
diff --git a/libc/misc/time/utimes.c b/libc/misc/time/utimes.c
index 364bf83e7..86dff6bea 100644
--- a/libc/misc/time/utimes.c
+++ b/libc/misc/time/utimes.c
@@ -1,7 +1,8 @@
+#include <stdlib.h>
 #include <utime.h>
 #include <sys/time.h>
 
-int utimes(const char *path, struct timeval tvp[2])
+int utimes (const char *file, const struct timeval tvp[2])
 {
 	struct utimbuf buf, *times;
 
@@ -12,5 +13,5 @@ int utimes(const char *path, struct timeval tvp[2])
 	}
 	else
 		times = NULL;
-	return utime(path, times);
+	return utime(file, times);
 }
-- 
cgit v1.2.3