[root@nexus res]# make
cc -DZAPATA_MOH -DOPENSSL_NO_KRB5 -fPIC -c -o res_features.o res_features.c
In file included from res_features.c:14:
/usr/include/asterisk/lock.h: In function `ast_mutex_init':
/usr/include/asterisk/lock.h:311: error: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)
/usr/include/asterisk/lock.h:311: error: (Each undeclared identifier is reported only once
/usr/include/asterisk/lock.h:311: error: for each function it appears in.)
make: *** [res_features.o] Error 1