diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2007-01-22 09:20:55 +0000 |
---|---|---|
committer | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2007-01-22 09:20:55 +0000 |
commit | 502f1bc19f336355f88eb25cfbfde36dbd866f24 (patch) | |
tree | 72f3fbcb2086d615fa99fe690277eb851e52455a | |
parent | 294c41548a1e8517b2becd2f0079759b8abfa3d2 (diff) |
Recognize _SC_MONOTONIC_CLOCK in sysconf() even if __NR_clock_getres
is not defined.
-rw-r--r-- | libc/unistd/sysconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c index c1b5da64d..66bcf9045 100644 --- a/libc/unistd/sysconf.c +++ b/libc/unistd/sysconf.c @@ -884,14 +884,14 @@ long int sysconf(int name) RETURN_NEG_1; #endif -#ifdef __NR_clock_getres case _SC_MONOTONIC_CLOCK: +#ifdef __NR_clock_getres /* Check using the clock_getres system call. */ if (clock_getres(CLOCK_MONOTONIC, NULL) >= 0) return _POSIX_VERSION; +#endif RETURN_NEG_1; -#endif } } libc_hidden_def(sysconf) |