cc -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_spin_destroy.c -o pthread/pthread_spin_destroy -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -liconv pthread/pthread_spin_destroy.c: In function ‘main’: pthread/pthread_spin_destroy.c:10:23: error: implicit declaration of function ‘pthread_spin_init’; did you mean ‘pthread_cond_init’? [-Wimplicit-function-declaration] 10 | if ( (errno = pthread_spin_init(&lock, 0)) ) | ^~~~~~~~~~~~~~~~~ | pthread_cond_init pthread/pthread_spin_destroy.c:12:23: error: implicit declaration of function ‘pthread_spin_destroy’; did you mean ‘pthread_cond_destroy’? [-Wimplicit-function-declaration] 12 | if ( (errno = pthread_spin_destroy(&lock)) ) | ^~~~~~~~~~~~~~~~~~~~ | pthread_cond_destroy