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 -lrt -lintl -liconv 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_getstacksize’? [-Wimplicit-function-declaration] 14 | if ( (errno = pthread_attr_getschedpolicy(&attr, &policy)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_attr_getstacksize pthread/pthread_attr_getschedpolicy.c:16:24: error: ‘SCHED_OTHER’ undeclared (first use in this function) 16 | if ( policy != SCHED_OTHER ) | ^~~~~~~~~~~ pthread/pthread_attr_getschedpolicy.c:16:24: note: each undeclared identifier is reported only once for each function it appears in