cc -O2 -pipe -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 -lrt -lstdthreads -lcrypt 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 /usr/include/pthread.h:347:6: note: 'pthread_setschedparam' declared here 347 | int pthread_setschedparam(pthread_t, int, | ^ pthread/pthread_setschedprio.c:6:7: error: incompatible function pointer types initializing 'int (*)(pthread_t, int)' (aka 'int (*)(struct pthread *, int)') with an expression of type 'int (pthread_t, int, const struct sched_param *)' (aka 'int (struct pthread *, int, const struct sched_param *)') [-Wincompatible-function-pointer-types] 6 | int (*foo)(pthread_t, int) = pthread_setschedprio; | ^ ~~~~~~~~~~~~~~~~~~~~ 2 errors generated.