diff --git a/src/test/tests_stub_async.c b/src/test/tests_stub_async.c
index 3598a565..c9034aba 100644
--- a/src/test/tests_stub_async.c
+++ b/src/test/tests_stub_async.c
@@ -43,6 +43,7 @@
 #include <string.h>
 #include "testmessages.h"
 #include <getdns/getdns.h>
+#include <getdns/getdns_ext_libevent.h>
 #include <sys/time.h>
 
 /* Set up the callback function, which will also do the processing of the results */