cc -O2 -pipe -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_condattr_setpshared.c -o pthread/pthread_condattr_setpshared -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread pthread/pthread_condattr_setpshared.c:46:16: error: call to undeclared function 'pthread_condattr_setpshared'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] 46 | if ( (errno = pthread_condattr_setpshared(&condattr, shared)) ) | ^ pthread/pthread_condattr_setpshared.c:46:16: note: did you mean 'pthread_rwlockattr_setpshared'? /usr/include/pthread.h:252:6: note: 'pthread_rwlockattr_setpshared' declared here 252 | int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *, int); | ^ pthread/pthread_condattr_setpshared.c:55:16: error: call to undeclared function 'pthread_mutexattr_setpshared'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] 55 | if ( (errno = pthread_mutexattr_setpshared(&mutexattr, shared)) ) | ^ 2 errors generated.