cc -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_mutex_clocklock.c -o pthread/pthread_mutex_clocklock -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -liconv pthread/pthread_mutex_clocklock.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_clocklock.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 *); | ^ pthread/pthread_mutex_clocklock.c:20:16: error: call to undeclared function 'pthread_mutex_clocklock'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 20 | if ( (errno = pthread_mutex_clocklock(&mtx, CLOCK_MONOTONIC, | ^ 2 errors generated.