OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35d8250
)
The case for _SC_MONOTONIC_CLOCK should only exist if 'clock_getres' does.
author
"Steven J. Hill"
<sjhill@realitydiluted.com>
Sat, 20 Jan 2007 20:40:53 +0000
(20:40 -0000)
committer
"Steven J. Hill"
<sjhill@realitydiluted.com>
Sat, 20 Jan 2007 20:40:53 +0000
(20:40 -0000)
libc/unistd/sysconf.c
patch
|
blob
|
history
diff --git
a/libc/unistd/sysconf.c
b/libc/unistd/sysconf.c
index
f595b41
..
21a373a
100644
(file)
--- a/
libc/unistd/sysconf.c
+++ b/
libc/unistd/sysconf.c
@@
-884,6
+884,7
@@
long int sysconf(int name)
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
@@
long int sysconf(int name)
RETURN_NEG_1;
}
+#endif
}
libc_hidden_def(sysconf)