summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2009-01-28 14:33:41 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2009-01-28 14:33:41 +0000
commitdd8cc1a6852c177eb3d0e5811992578f79feb1e4 (patch)
tree707669691706494034cb931aeae7649973cc674d
parent40fe76911410300412f3895cce2d608f0e04e93f (diff)
downloaduClibc-alpine-dd8cc1a6852c177eb3d0e5811992578f79feb1e4.tar.bz2
uClibc-alpine-dd8cc1a6852c177eb3d0e5811992578f79feb1e4.tar.xz
Make clock_getcpuclockid() and clock_nanosleep() visible when
NPTL is enabled, and we have selected __UCLIBC_HAS_ADVANCED_REALTIME__ Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
-rw-r--r--include/time.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/time.h b/include/time.h
index 4f060be03..7fcdf68e6 100644
--- a/include/time.h
+++ b/include/time.h
@@ -362,10 +362,9 @@ extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW;
/* Set clock CLOCK_ID to value TP. */
extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
__THROW;
-#endif /* __UCLIBC_HAS_REALTIME__ */
-#ifdef __UCLIBC_MJN3_ONLY__
-#warning "mjn3 FIXME: a bunch of unimplemented function prototypes."
-# if defined __USE_XOPEN2K && defined __UCLIBC_HAS_ADVANCED_REALTIME__
+# endif /* __UCLIBC_HAS_REALTIME__ */
+# ifdef __UCLIBC_HAS_THREADS_NATIVE__
+# if defined __USE_XOPEN2K && defined __UCLIBC_HAS_ADVANCED_REALTIME__
/* High-resolution sleep with the specified clock.
This function is a cancellation point and therefore not marked with
@@ -376,8 +375,8 @@ extern int clock_nanosleep (clockid_t __clock_id, int __flags,
/* Return clock ID for CPU-time clock. */
extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
-# endif
-#endif /* __UCLIBC_MJN3_ONLY__ */
+# endif
+# endif /* __UCLIBC_HAS_THREADS_NATIVE__ */
# if defined __UCLIBC_HAS_REALTIME__
/* Create new per-process timer using CLOCK_ID. */