cc -O2 -pipe -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_mutex_consistent.c -o pthread/pthread_mutex_consistent -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread pthread/pthread_mutex_consistent.c:26:16: error: call to undeclared function 'pthread_mutexattr_setrobust'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] 26 | if ( (errno = pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST)) ) | ^ pthread/pthread_mutex_consistent.c:26:51: error: use of undeclared identifier 'PTHREAD_MUTEX_ROBUST'; did you mean 'PTHREAD_MUTEX_NORMAL'? 26 | if ( (errno = pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST)) ) | ^~~~~~~~~~~~~~~~~~~~ | PTHREAD_MUTEX_NORMAL /usr/include/pthread.h:171:2: note: 'PTHREAD_MUTEX_NORMAL' declared here 171 | PTHREAD_MUTEX_NORMAL = 3, /* No error checking */ | ^ pthread/pthread_mutex_consistent.c:54:16: error: call to undeclared function 'pthread_mutex_consistent'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] 54 | if ( (errno = pthread_mutex_consistent(&mutex)) ) | ^ pthread/pthread_mutex_consistent.c:54:16: note: did you mean 'pthread_mutex_init'? /usr/include/pthread.h:229:6: note: 'pthread_mutex_init' declared here 229 | int pthread_mutex_init(pthread_mutex_t *, | ^ 3 errors generated.