summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd')
-rw-r--r--libc/unistd/sysconf.c4
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)