|
30 | 30 | #ifdef __linux__
|
31 | 31 | #define PTHREAD_MUTEX_INITIALIZER \
|
32 | 32 | { \
|
33 |
| - /* .__timed = */ 0, \ |
34 |
| - /* .__recursive = */ 0, \ |
35 |
| - /* .__robust = */ 0, \ |
36 |
| - /* .__owner = */ NULL, \ |
37 |
| - /* .__lock_count = */ 0, /* .__futex_word = */ \ |
38 |
| - { \ |
39 |
| - /* .__word = */ 0, \ |
40 |
| - }, \ |
| 33 | + /* .__timed = */ 0, /* .__recursive = */ 0, \ |
| 34 | + /* .__robust = */ 0, /* .__owner = */ NULL, \ |
| 35 | + /* .__lock_count = */ 0, /* .__futex_word = */ {0}, \ |
41 | 36 | }
|
42 | 37 | #else
|
43 | 38 | #define PTHREAD_MUTEX_INITIALIZER \
|
|
53 | 48 | /* .__is_pshared = */ 0, \
|
54 | 49 | /* .__preference = */ 0, \
|
55 | 50 | /* .__state = */ 0, \
|
56 |
| - /* .__write_tid = */ 0, /* .__wait_queue_mutex = */ \ |
57 |
| - { \ |
58 |
| - /* .__word = */ 0, \ |
59 |
| - }, /* .__pending_readers = */ \ |
60 |
| - { \ |
61 |
| - /* .__word = */ 0, \ |
62 |
| - }, /* .__pending_writers = */ \ |
63 |
| - { \ |
64 |
| - /* .__word = */ 0, \ |
65 |
| - }, /* .__reader_serialization = */ \ |
66 |
| - { \ |
67 |
| - /* .__word = */ 0, \ |
68 |
| - }, /* .__writer_serialization = */ \ |
69 |
| - { \ |
70 |
| - /* .__word = */ 0, \ |
71 |
| - }, \ |
| 51 | + /* .__write_tid = */ 0, \ |
| 52 | + /* .__wait_queue_mutex = */ {0}, \ |
| 53 | + /* .__pending_readers = */ {0}, \ |
| 54 | + /* .__pending_writers = */ {0}, \ |
| 55 | + /* .__reader_serialization = */ {0}, \ |
| 56 | + /* .__writer_serialization = */ {0}, \ |
72 | 57 | }
|
73 | 58 |
|
74 | 59 | // glibc extensions
|
|
0 commit comments