diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2007-01-20 20:40:53 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2007-01-20 20:40:53 +0000 |
commit | cba65ce14798163d9985e5462e56939811eb38ef (patch) | |
tree | 65207c03d53bb580ddad4a2c69f20d07674a7067 /libc/unistd/sysconf.c | |
parent | 35d8250d34c8d6125a33eb323555bffbfa0b1af5 (diff) |
The case for _SC_MONOTONIC_CLOCK should only exist if 'clock_getres' does.
Diffstat (limited to 'libc/unistd/sysconf.c')
-rw-r--r-- | libc/unistd/sysconf.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |