From cba65ce14798163d9985e5462e56939811eb38ef Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Sat, 20 Jan 2007 20:40:53 +0000 Subject: The case for _SC_MONOTONIC_CLOCK should only exist if 'clock_getres' does. --- libc/unistd/sysconf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/unistd') diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c index f595b4173..21a373af0 100644 --- a/libc/unistd/sysconf.c +++ b/libc/unistd/sysconf.c @@ -884,6 +884,7 @@ long int sysconf(int name) RETURN_NEG_1; #endif +#ifdef __NR_clock_getres case _SC_MONOTONIC_CLOCK: /* Check using the clock_getres system call. */ if (clock_getres(CLOCK_MONOTONIC, NULL) >= 0) @@ -891,5 +892,6 @@ long int sysconf(int name) RETURN_NEG_1; } +#endif } libc_hidden_def(sysconf) -- cgit v1.2.3