diff --git a/src/protocol/curl/http.c b/src/protocol/curl/http.c
index 25d0eb36d..523052466 100644
--- a/src/protocol/curl/http.c
+++ b/src/protocol/curl/http.c
@@ -49,6 +49,7 @@
 #include "osdep/sysname.h"
 #include "protocol/auth/auth.h"
 #include "protocol/common.h"
+#include "protocol/curl/ftpes.h"
 #include "protocol/curl/http.h"
 #include "protocol/http/http.h"
 #include "protocol/http/post.h"