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