cc -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 -liconv 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 [-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' 26 | if ( (errno = pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST)) ) | ^ 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 [-Wimplicit-function-declaration] 54 | if ( (errno = pthread_mutex_consistent(&mutex)) ) | ^ pthread/pthread_mutex_consistent.c:54:16: note: did you mean 'pthread_mutex_init'? /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/pthread.h:388:5: note: 'pthread_mutex_init' declared here 388 | int pthread_mutex_init(pthread_mutex_t * __restrict, | ^ 3 errors generated.