[PATCH 3/5] conddefaultattributes.c: Add default clock to structure.

Joel Sherrill joel at rtems.org
Tue Mar 29 21:17:06 UTC 2016


---
 cpukit/posix/src/conddefaultattributes.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/cpukit/posix/src/conddefaultattributes.c b/cpukit/posix/src/conddefaultattributes.c
index 84fdbc8..9b0837e 100644
--- a/cpukit/posix/src/conddefaultattributes.c
+++ b/cpukit/posix/src/conddefaultattributes.c
@@ -6,7 +6,7 @@
  */
 
 /*
- *  COPYRIGHT (c) 1989-2007.
+ *  COPYRIGHT (c) 1989-2007, 2016.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -19,18 +19,17 @@
 #endif
 
 #include <pthread.h>
-#include <errno.h>
 
 #include <rtems/system.h>
-#include <rtems/score/watchdog.h>
-#include <rtems/posix/condimpl.h>
-#include <rtems/posix/muteximpl.h>
 
 /*
  *  The default condition variable attributes structure.
  */
 
 const pthread_condattr_t _POSIX_Condition_variables_Default_attributes = {
-  true,                      /* is_initialized */
-  PTHREAD_PROCESS_PRIVATE    /* process_shared */
+  .is_initialized = true,
+  .clock          = CLOCK_REALTIME,
+#if defined(_POSIX_THREAD_PROCESS_SHARED)
+  .process_shared = PTHREAD_PROCESS_PRIVATE
+#endif
 };
-- 
1.8.3.1




More information about the devel mailing list