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