svn commit: branches/uClibc-nptl/include

carmelo at uclibc.org carmelo at uclibc.org
Wed Jan 28 14:33:43 UTC 2009


Author: carmelo
Date: 2009-01-28 14:33:41 +0000 (Wed, 28 Jan 2009)
New Revision: 25096

Log:
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 at st.com>



Modified:
   branches/uClibc-nptl/include/time.h


Changeset:
Modified: branches/uClibc-nptl/include/time.h
===================================================================
--- branches/uClibc-nptl/include/time.h	2009-01-28 14:16:11 UTC (rev 25095)
+++ branches/uClibc-nptl/include/time.h	2009-01-28 14:33:41 UTC (rev 25096)
@@ -362,10 +362,9 @@
 /* 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 @@
 
 /* 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.  */



More information about the uClibc-cvs mailing list