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