cc -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_spin_lock.c -o pthread/pthread_spin_lock -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -liconv pthread/pthread_spin_lock.c: In function ‘main’: pthread/pthread_spin_lock.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_lock.c:12:23: error: implicit declaration of function ‘pthread_spin_lock’; did you mean ‘pthread_mutex_lock’? [-Wimplicit-function-declaration] 12 | if ( (errno = pthread_spin_lock(&lock)) ) | ^~~~~~~~~~~~~~~~~ | pthread_mutex_lock