svn commit: trunk/uClibc/libc/unistd
sjhill at uclibc.org
sjhill at uclibc.org
Sat Jan 20 20:40:53 UTC 2007
Author: sjhill
Date: 2007-01-20 12:40:53 -0800 (Sat, 20 Jan 2007)
New Revision: 17410
Log:
The case for _SC_MONOTONIC_CLOCK should only exist if 'clock_getres' does.
Modified:
trunk/uClibc/libc/unistd/sysconf.c
Changeset:
Modified: trunk/uClibc/libc/unistd/sysconf.c
===================================================================
--- trunk/uClibc/libc/unistd/sysconf.c 2007-01-20 20:38:57 UTC (rev 17409)
+++ trunk/uClibc/libc/unistd/sysconf.c 2007-01-20 20:40:53 UTC (rev 17410)
@@ -884,6 +884,7 @@
RETURN_NEG_1;
#endif
+#ifdef __NR_clock_getres
case _SC_MONOTONIC_CLOCK:
/* Check using the clock_getres system call. */
if (clock_getres(CLOCK_MONOTONIC, NULL) >= 0)
@@ -891,5 +892,6 @@
RETURN_NEG_1;
}
+#endif
}
libc_hidden_def(sysconf)
More information about the uClibc-cvs
mailing list