--- ecap_adapter_sample-1.0.0/src/adapter_async.cc~ 2013-09-17 20:51:39.000000000 +0100 +++ ecap_adapter_sample-1.0.0/src/adapter_async.cc 2016-03-04 16:49:41.916198732 +0000 @@ -12,6 +12,7 @@ #if HAVE_PTHREAD #include <pthread.h> #endif +#include <unistd.h> /* * Warning: This sample code is NOT thread-safe! A production implementation