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