Read-write locks are non-standard and conditionally defined in <pthread.h> .
-std=c99 requests close conformance to the standard (as far as possible) and disables both language extensions and additional libraries.
If you pass std=gnu99 , you will get the C99 compiler version, as well as all extensions and add-ons provided by gcc by default.
Ben voigt
source share