cc -O2 -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 -lrt -lintl -lcrypt pthread/pthread_mutex_consistent.c: In function 'main': pthread/pthread_mutex_consistent.c:26:16: error: implicit declaration of function 'pthread_mutexattr_setrobust'; did you mean 'pthread_mutexattr_setprotocol'? [-Werror=implicit-function-declaration] 26 | if ( (errno = pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_mutexattr_setprotocol pthread/pthread_mutex_consistent.c:26:51: error: 'PTHREAD_MUTEX_ROBUST' undeclared (first use in this function); did you mean 'PTHREAD_MUTEX_DEFAULT'? 26 | if ( (errno = pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST)) ) | ^~~~~~~~~~~~~~~~~~~~ | PTHREAD_MUTEX_DEFAULT pthread/pthread_mutex_consistent.c:26:51: note: each undeclared identifier is reported only once for each function it appears in pthread/pthread_mutex_consistent.c:54:16: error: implicit declaration of function 'pthread_mutex_consistent'; did you mean 'pthread_mutex_init'? [-Werror=implicit-function-declaration] 54 | if ( (errno = pthread_mutex_consistent(&mutex)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~ | pthread_mutex_init cc1: some warnings being treated as errors