Shouldn't include/sane/sanei_thread.h have an #include <pthread.h> just before typedef pthread_t SANE_Pid; ? -- Best regards, Alessandro Zummo - CEO, Tower Technologies - Torino, Italy http://www.towertech.it