From 8b592456214de507082c3b5302ea8db84d33a8c6 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 16 Jun 2008 16:59:13 +0000 Subject: - fix build error brk.c:(.text.__GI_sysconf+0xd4): undefined reference to `clock_getres' --- libc/unistd/sysconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/unistd/sysconf.c') 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; -- cgit v1.2.3