cc -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_cancel.c -o pthread/pthread_cancel -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -liconv pthread/pthread_cancel.c: In function ‘main’: pthread/pthread_cancel.c:25:23: error: implicit declaration of function ‘pthread_cancel’; did you mean ‘pthread_once’? [-Wimplicit-function-declaration] 25 | if ( (errno = pthread_cancel(thread)) ) | ^~~~~~~~~~~~~~ | pthread_once pthread/pthread_cancel.c:30:24: error: ‘PTHREAD_CANCELED’ undeclared (first use in this function); did you mean ‘PTHREAD_NULL’? 30 | if ( result != PTHREAD_CANCELED ) | ^~~~~~~~~~~~~~~~ | PTHREAD_NULL pthread/pthread_cancel.c:30:24: note: each undeclared identifier is reported only once for each function it appears in