cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations pthread/pthread_condattr_getclock.c -o pthread/pthread_condattr_getclock -D_POSIX_C_SOURCE=202405L -lm -lpthread -liconv pthread/pthread_condattr_getclock.c:5:71: error: use of undeclared identifier 'pthread_condattr_getclock'; did you mean 'pthread_condattr_destroy'? 5 | int (*foo)(const pthread_condattr_t *restrict, clockid_t *restrict) = pthread_condattr_getclock; | ^~~~~~~~~~~~~~~~~~~~~~~~~ | 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_getclock.c:5:7: error: incompatible function pointer types initializing 'int (*)(const pthread_condattr_t *restrict, clockid_t *restrict)' (aka 'int (*)(const struct _opaque_pthread_condattr_t *restrict, clockid_t *restrict)') 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)(const pthread_condattr_t *restrict, clockid_t *restrict) = pthread_condattr_getclock; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated.