From 64e9e71cdb7d88397e510e1986d494b797ed3b45 Mon Sep 17 00:00:00 2001 From: Sharvil Nanavati Date: Fri, 12 Jun 2015 10:56:17 -0700 Subject: [PATCH] Define nonportable pthread mutex macros with the _NP suffix. Change-Id: I1066352e5b2607f64daf6aeb0030d0bbe88ead8d --- libc/include/pthread.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libc/include/pthread.h b/libc/include/pthread.h index c32890b03..334cf7a6a 100644 --- a/libc/include/pthread.h +++ b/libc/include/pthread.h @@ -56,6 +56,9 @@ typedef struct { #define PTHREAD_RECURSIVE_MUTEX_INITIALIZER {__PTHREAD_RECURSIVE_MUTEX_INIT_VALUE __RESERVED_INITIALIZER} #define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER {__PTHREAD_ERRORCHECK_MUTEX_INIT_VALUE __RESERVED_INITIALIZER} +#define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP PTHREAD_RECURSIVE_MUTEX_INITIALIZER +#define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP PTHREAD_ERRORCHECK_MUTEX_INITIALIZER + enum { PTHREAD_MUTEX_NORMAL = 0, PTHREAD_MUTEX_RECURSIVE = 1,