From 714efce48abdb4c39f91010e50fad46cac5c889e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 29 Feb 2016 10:25:42 -0600 Subject: [PATCH] conddefaultattributes.c: Add default clock to structure. --- 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 84fdbc875f..9b0837e793 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 -#include #include -#include -#include -#include /* * 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 };