 +  }
 +#define PTHREAD_MUTEX_INITIALIZER PTHREAD_MUTEX_NONRECURSIVE_INITIALIZER
 +
-+#define PTHREAD_RWLOCK_INITIALIZER {0}
-+
 +typedef struct { unsigned char _dummy; } pthread_mutexattr_t;
 +
 +typedef struct {

+
+typedef struct { unsigned char _dummy; } pthread_condattr_t;
+
+typedef struct { unsigned char _dummy; } pthread_rwlock_t;
+
+typedef struct { unsigned char _dummy; } pthread_rwlockattr_t;
+

diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/_pthreadtypes.h ./newlib/libc/sys/enclave/include/sys/_pthreadtypes.h
--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/_pthreadtypes.h
+++ ./newlib/libc/sys/enclave/include/sys/_pthreadtypes.h
@@ -0,0 +1,86 @@
+#ifndef _SYS__PTHREADTYPES_H
+#define _SYS__PTHREADTYPES_H
+
