1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +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

@@ -41,13 +41,13 @@ extern int __pthread_clock_gettime (hp_timing_t freq, struct timespec *tp)
int
clock_gettime (clockid_t clock_id, struct timespec *tp)
{
struct timeval tv;
int retval = -1;
switch (clock_id)
{
#define HANDLE_REALTIME \
do { \
struct timeval tv; \
retval = gettimeofday (&tv, NULL); \
if (retval == 0) \
/* Convert into `timespec'. */ \