Index: lib/tevent/tevent_internal.h --- lib/tevent/tevent_internal.h.orig +++ lib/tevent/tevent_internal.h @@ -27,6 +27,10 @@ License along with this library; if not, see . */ +#ifdef HAVE_PTHREAD +#include +#endif + struct tevent_req { /** * @brief What to do on completion