emp@lucie ~/tmp $ cat < /dev/tcp/213.41.241.155/8897 > rwlock.c emp@lucie ~/tmp $ gcc -W -Wall -O2 -std=c99 -pedantic -pthread -D_XOPEN_SOURCE=600 -o rwlock rwlock.c
rwlock.c:16: error: syntax error before "pthread_barrier_t"
rwlock.c: In function `mutex_worker':
rwlock.c:44: warning: implicit declaration of function `pthread_barrier_wait'
rwlock.c:44: error: structure has no member named `bar'
rwlock.c: In function `rwlock_worker':
rwlock.c:54: error: structure has no member named `bar'
rwlock.c: In function `mutex_test':
rwlock.c:72: error: structure has no member named `bar'
rwlock.c: In function `rwlock_test':
rwlock.c:91: error: structure has no member named `bar'
rwlock.c: In function `main':
rwlock.c:105: warning: implicit declaration of function `pthread_barrier_init'
rwlock.c:105: error: structure has no member named `bar'
rwlock.c:113: warning: implicit declaration of function `pthread_barrier_destroy'
rwlock.c:113: error: structure has no member named `bar'