svn commit: trunk/uClibc/libc/unistd
pkj at uclibc.org
pkj at uclibc.org
Mon Jan 22 09:20:56 UTC 2007
Author: pkj
Date: 2007-01-22 01:20:55 -0800 (Mon, 22 Jan 2007)
New Revision: 17455
Log:
Recognize _SC_MONOTONIC_CLOCK in sysconf() even if __NR_clock_getres
is not defined.
Modified:
trunk/uClibc/libc/unistd/sysconf.c
Changeset:
Modified: trunk/uClibc/libc/unistd/sysconf.c
===================================================================
--- trunk/uClibc/libc/unistd/sysconf.c 2007-01-22 09:14:02 UTC (rev 17454)
+++ trunk/uClibc/libc/unistd/sysconf.c 2007-01-22 09:20:55 UTC (rev 17455)
@@ -884,14 +884,14 @@
RETURN_NEG_1;
#endif
+ case _SC_MONOTONIC_CLOCK:
#ifdef __NR_clock_getres
- case _SC_MONOTONIC_CLOCK:
/* 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)
More information about the uClibc-cvs
mailing list