aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-04-08 23:35:57 +0000
committerMiles Bader <miles@gnu.org>1996-04-08 23:35:57 +0000
commita1a5fa67c6df00e4e7b230a6dae301b6bbf89c78 (patch)
tree8da98f51d6f88cd4e7f96ce316d1605cd6119391 /sysdeps
parent2e6878f7b191b407e5d62ee4257b5c724d0dc624 (diff)
downloadglibc-a1a5fa67c6df00e4e7b230a6dae301b6bbf89c78.zip
glibc-a1a5fa67c6df00e4e7b230a6dae301b6bbf89c78.tar.gz
glibc-a1a5fa67c6df00e4e7b230a6dae301b6bbf89c78.tar.bz2
(__gettimeofday): Don't fail if the user passes in TZ, just zero it (emacs passes in a dummy variable, and rms says the hurd should be the one to change).
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/gettimeofday.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sysdeps/mach/gettimeofday.c b/sysdeps/mach/gettimeofday.c
index 9271490..531b0b6 100644
--- a/sysdeps/mach/gettimeofday.c
+++ b/sysdeps/mach/gettimeofday.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1995, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -31,10 +31,7 @@ DEFUN(__gettimeofday, (tv, tz),
kern_return_t err;
if (tz != NULL)
- {
- errno = ENOSYS;
- return -1;
- }
+ *tz = (struct timezone){0, 0}; /* XXX */
if (err = __host_get_time (__mach_host_self (), (time_value_t *) tv))
{