diff options
author | Roland McGrath <roland@gnu.org> | 2002-02-17 07:57:32 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-02-17 07:57:32 +0000 |
commit | 746f400783a0ce9297cc10c37d074699a2b7d371 (patch) | |
tree | f188a429dc5ae8d717abc510c347e4cc0246480b /sysdeps/mach/hurd/times.c | |
parent | 30537cab78969a27a9f045a812e712cd0ebd9c24 (diff) | |
download | glibc-746f400783a0ce9297cc10c37d074699a2b7d371.zip glibc-746f400783a0ce9297cc10c37d074699a2b7d371.tar.gz glibc-746f400783a0ce9297cc10c37d074699a2b7d371.tar.bz2 |
* sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
to use BI.creation_time.
* mach/Machrules (MIG): Add -x c to CPP value passed down.
Diffstat (limited to 'sysdeps/mach/hurd/times.c')
-rw-r--r-- | sysdeps/mach/hurd/times.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/times.c b/sysdeps/mach/hurd/times.c index 044ca17..e232757 100644 --- a/sysdeps/mach/hurd/times.c +++ b/sysdeps/mach/hurd/times.c @@ -1,5 +1,5 @@ /* Return CPU and real time used by process and its children. Hurd version. - Copyright (C) 2001 Free Software Foundation, Inc. + Copyright (C) 2001,02 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 @@ -70,7 +70,11 @@ __times (struct tms *tms) if (err) return __hurd_fail (err); +#if NO_CREATION_TIME + return 0; /* XXX */ +#else return (clock_from_time_value (&now) - clock_from_time_value (&bi.creation_time)); +#endif } weak_alias (__times, times) |