cc -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_mutex_timedlock.c -o pthread/pthread_mutex_timedlock -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -liconv pthread/pthread_mutex_timedlock.c:16:16: error: call to undeclared function 'pthread_mutex_timedlock'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 16 | if ( (errno = pthread_mutex_timedlock(&mtx, &long_timeout)) ) | ^ pthread/pthread_mutex_timedlock.c:16:16: note: did you mean 'pthread_mutex_trylock'? /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/pthread.h:401:5: note: 'pthread_mutex_trylock' declared here 401 | int pthread_mutex_trylock(pthread_mutex_t *); | ^ 1 error generated.