--- include/ntp_worker.h.orig	Thu Feb  6 22:41:12 2014
+++ include/ntp_worker.h	Thu Feb  6 22:50:16 2014
@@ -9,6 +9,9 @@
 
 #ifdef WORKER
 # if defined(WORK_THREAD) && defined(WORK_PIPE)
+#  ifdef HAVE_PTHREAD_H
+#   include <pthread.h>
+#  endif
 #  ifdef HAVE_SEMAPHORE_H
 #   include <semaphore.h>
 #  endif
