>> + struct representation* common_pls; >> + pthread_mutex_t* common_mutex; >> + pthread_cond_t* common_condition; > Should add #if HAVE_THREADS to check if the pthread supported. You are right, I will add HAVE_THREADS checks.