Forget about it. It seems that another file was including sys/types.h before I define _POSIX_THREADS. -- Raphael Derosso Pereira Engenheiro de Computação icq: 4517421 msn: rderossopereira@hotmail.com Skype: rderossopereira