Skip to content

Commit 14aa275

Browse files
Add a patch file to work around a recent NaCl SDK issue.
1 parent 177a571 commit 14aa275

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/etc/nacl-pthreads.patch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/sys/types.h b/sys/types.h
2+
index c6ac60a..8c4be36 100644
3+
--- a/sys/types.h
4+
+++ b/sys/types.h
5+
@@ -515,7 +515,7 @@ typedef __uint32_t pthread_spinlock_t; /* POSIX Spin Lock Object */
6+
#endif /* defined(_POSIX_SPIN_LOCKS) */
7+
8+
/* POSIX Reader/Writer Lock Types */
9+
-
10+
+#if !defined(__native_client__)
11+
#if defined(_POSIX_READER_WRITER_LOCKS)
12+
typedef __uint32_t pthread_rwlock_t; /* POSIX RWLock Object */
13+
typedef struct {
14+
@@ -525,6 +525,7 @@ typedef struct {
15+
#endif
16+
} pthread_rwlockattr_t;
17+
#endif /* defined(_POSIX_READER_WRITER_LOCKS) */
18+
+#endif /* !defined(__native_client__) */
19+
#endif /* __CYGWIN__ */
20+
21+
#endif /* !__need_inttypes */

0 commit comments

Comments
 (0)