aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog2
-rw-r--r--newlib/libc/sys/sh/syscalls.c8
2 files changed, 10 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 27fe6ba..0e05f7e 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,7 @@
2001-01-25 Alexandre Oliva <aoliva@redhat.com>
+ * libc/sys/sh/syscalls.c (_times): New.
+
* configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
* libc/sys/sh/syscalls.c (_gettimeofday): New.
diff --git a/newlib/libc/sys/sh/syscalls.c b/newlib/libc/sys/sh/syscalls.c
index f976114..8380c70 100644
--- a/newlib/libc/sys/sh/syscalls.c
+++ b/newlib/libc/sys/sh/syscalls.c
@@ -176,6 +176,14 @@ _pipe (int *fd)
return __trap34 (SYS_pipe, fd);
}
+/* This is only provided because _gettimeofday_r and _times_r are
+ defined in the same module, so we avoid a link error. */
+clock_t
+_times (struct tms *tp)
+{
+ return -1;
+}
+
int
_gettimeofday (struct timeval *tv, struct timezone *tz)
{