svn commit: trunk/uClibc/libc/unistd
aldot at uclibc.org
aldot at uclibc.org
Mon Jun 16 16:59:14 UTC 2008
Author: aldot
Date: 2008-06-16 09:59:13 -0700 (Mon, 16 Jun 2008)
New Revision: 22384
Log:
- fix build error
brk.c:(.text.__GI_sysconf+0xd4): undefined reference to `clock_getres'
Modified:
trunk/uClibc/libc/unistd/sysconf.c
Changeset:
Modified: trunk/uClibc/libc/unistd/sysconf.c
===================================================================
--- trunk/uClibc/libc/unistd/sysconf.c 2008-06-16 15:52:41 UTC (rev 22383)
+++ trunk/uClibc/libc/unistd/sysconf.c 2008-06-16 16:59:13 UTC (rev 22384)
@@ -884,7 +884,7 @@
#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;
More information about the uClibc-cvs
mailing list