Misc. bits (3/5)
Ulrich Drepper
drepper@redhat.com
Tue Jun 14 00:41:00 GMT 2005
Alfred M. Szmidt wrote:
> --- sysdeps/unix/clock_gettime.c
> +++ sysdeps/unix/clock_gettime.c
> @@ -101,6 +101,14 @@
> #endif
>
> #ifndef HANDLED_REALTIME
> +#define HANDLE_REALTIME \
> + do { \
> + struct timeval tv; \
> + TIMESPEC_TO_TIMEVAL (&tv, tp); \
> + \
> + retval = settimeofday (&tv, NULL); \
This is the implementation of clock_gettime and you use settimeofday?
And why define a macro which is not defined and only used once afterward?
I checked in a better patch, completely untested though, since none of
my platforms is so archaic.
--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20050614/e705c652/attachment.sig>
More information about the Libc-alpha
mailing list