1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
2003-03-16  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
	not at function level.
	* sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
This commit is contained in:
Ulrich Drepper
2003-03-16 10:16:43 +00:00
parent 51d0678c29
commit b6e2f87a61
5 changed files with 32 additions and 9 deletions

View File

@ -40,7 +40,6 @@ extern void __pthread_clock_settime (hp_timing_t offset)
int
clock_settime (clockid_t clock_id, const struct timespec *tp)
{
struct timeval tv;
int retval;
/* Make sure the time cvalue is OK. */
@ -54,6 +53,7 @@ clock_settime (clockid_t clock_id, const struct timespec *tp)
{
#define HANDLE_REALTIME \
do { \
struct timeval tv; \
TIMESPEC_TO_TIMEVAL (&tv, tp); \
\
retval = settimeofday (&tv, NULL); \