summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nuttx/include/pthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/include/pthread.h b/nuttx/include/pthread.h
index a7b0b5c9b..a94af2979 100644
--- a/nuttx/include/pthread.h
+++ b/nuttx/include/pthread.h
@@ -183,7 +183,7 @@ struct pthread_cond_s
sem_t sem;
};
typedef struct pthread_cond_s pthread_cond_t;
-#define PTHREAD_COND_INITIALIZER {{0, 0xffff}}
+#define PTHREAD_COND_INITIALIZER {SEM_INITIALIZER(0)}
struct pthread_mutexattr_s
{