cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations pthread/pthread_condattr_setclock.c -o pthread/pthread_condattr_setclock -D_POSIX_C_SOURCE=202405L -lm -lpthread -liconv pthread/pthread_condattr_setclock.c:5:47: error: use of undeclared identifier 'pthread_condattr_setclock'; did you mean 'pthread_condattr_destroy'? 5 | int (*foo)(pthread_condattr_t *, clockid_t) = pthread_condattr_setclock; | ^~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_condattr_destroy /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/pthread.h:324:5: note: 'pthread_condattr_destroy' declared here 324 | int pthread_condattr_destroy(pthread_condattr_t *); | ^ pthread/pthread_condattr_setclock.c:5:7: error: incompatible function pointer types initializing 'int (*)(pthread_condattr_t *, clockid_t)' (aka 'int (*)(struct _opaque_pthread_condattr_t *, clockid_t)') with an expression of type 'int (pthread_condattr_t * _Nonnull)' (aka 'int (struct _opaque_pthread_condattr_t * _Nonnull)') [-Wincompatible-function-pointer-types] 5 | int (*foo)(pthread_condattr_t *, clockid_t) = pthread_condattr_setclock; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated.