cc -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_attr_getschedpolicy.c -o pthread/pthread_attr_getschedpolicy -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lnetwork -lbsd -latomic pthread/pthread_attr_getschedpolicy.c: In function 'main': pthread/pthread_attr_getschedpolicy.c:14:23: error: implicit declaration of function 'pthread_attr_getschedpolicy'; did you mean 'pthread_attr_getschedparam'? [-Werror=implicit-function-declaration] 14 | if ( (errno = pthread_attr_getschedpolicy(&attr, &policy)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_attr_getschedparam cc1: some warnings being treated as errors