summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-16 16:59:13 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-16 16:59:13 +0000
commit8b592456214de507082c3b5302ea8db84d33a8c6 (patch)
treee74d59ee3a52d9b88ee3b86532ad671c7b3ac639 /libc/unistd
parentee6e93f15a9f23ed75b53ee79a95c8faf7e9b4c7 (diff)
- fix build error
brk.c:(.text.__GI_sysconf+0xd4): undefined reference to `clock_getres'
Diffstat (limited to 'libc/unistd')
-rw-r--r--libc/unistd/sysconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c
index 8488f013b..549c13ca6 100644
--- a/libc/unistd/sysconf.c
+++ b/libc/unistd/sysconf.c
@@ -884,7 +884,7 @@ long int sysconf(int name)
#endif
case _SC_MONOTONIC_CLOCK:
-#ifdef __NR_clock_getres
+#if defined __UCLIBC_HAS_REALTIME__ && defined __NR_clock_getres
/* Check using the clock_getres system call. */
if (clock_getres(CLOCK_MONOTONIC, NULL) >= 0)
return _POSIX_VERSION;