From 94d824f920209243c72eb4a6fedbb5a039be2af3 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 4 Oct 2004 19:28:07 +0000 Subject: Update. * sysdeps/unix/sysv/linux/ia64/sysconf.c: New file. * sysdeps/unix/sysv/linux/ia64/Dist: Add has_cpuclock.c. * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: Move actual testing code to... * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: ...here. New file. * sysdeps/unix/sysv/linux/i386/sysconf.c: Add dynamic check for _SC_CPUTIME and _SC_THREAD_CPUTIME. --- nscd/connections.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'nscd') diff --git a/nscd/connections.c b/nscd/connections.c index aae798ed47..594a5b8950 100644 --- a/nscd/connections.c +++ b/nscd/connections.c @@ -1459,16 +1459,15 @@ start_threads (void) && defined _POSIX_MONOTONIC_CLOCK && _POSIX_MONOTONIC_CLOCK >= 0 /* Determine whether the monotonous clock is available. */ struct timespec dummy; - if ( # if _POSIX_MONOTONIC_CLOCK == 0 - sysconf (_SC_MONOTONIC_CLOCK) > 0 && + if (sysconf (_SC_MONOTONIC_CLOCK) > 0) # endif # if _POSIX_CLOCK_SELECTION == 0 - sysconf (_SC_CLOCK_SELECTION) > 0 && + if (sysconf (_SC_CLOCK_SELECTION) > 0) # endif - clock_getres (CLOCK_MONOTONIC, &dummy) == 0 - && pthread_condattr_setclock (&condattr, CLOCK_MONOTONIC) == 0) - timeout_clock = CLOCK_MONOTONIC; + if (clock_getres (CLOCK_MONOTONIC, &dummy) == 0 + && pthread_condattr_setclock (&condattr, CLOCK_MONOTONIC) == 0) + timeout_clock = CLOCK_MONOTONIC; #endif pthread_cond_init (&readylist_cond, &condattr); -- cgit v1.2.3