cc -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_mutex_getprioceiling.c -o pthread/pthread_mutex_getprioceiling -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -liconv pthread/pthread_mutex_getprioceiling.c: In function ‘main’: pthread/pthread_mutex_getprioceiling.c:13:23: error: implicit declaration of function ‘pthread_mutexattr_setprotocol’; did you mean ‘pthread_mutexattr_settype’? [-Wimplicit-function-declaration] 13 | if ( (errno = pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_PROTECT)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_mutexattr_settype pthread/pthread_mutex_getprioceiling.c:13:60: error: ‘PTHREAD_PRIO_PROTECT’ undeclared (first use in this function) 13 | if ( (errno = pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_PROTECT)) ) | ^~~~~~~~~~~~~~~~~~~~ pthread/pthread_mutex_getprioceiling.c:13:60: note: each undeclared identifier is reported only once for each function it appears in pthread/pthread_mutex_getprioceiling.c:19:23: error: implicit declaration of function ‘pthread_mutex_getprioceiling’; did you mean ‘pthread_mutex_timedlock’? [-Wimplicit-function-declaration] 19 | if ( (errno = pthread_mutex_getprioceiling(&mutex, &priority)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_mutex_timedlock