diff --git a/src/main.c b/src/main.c
index 8235bbe8..6b0c6d19 100644
--- a/src/main.c
+++ b/src/main.c
@@ -60,6 +60,7 @@ so, delete this exception statement from your version.  */
 #include "cookies.h"
 #include "url.h"
 #include "progress.h"		/* for progress_handle_sigwinch */
+#include "convert.h"
 
 #ifdef HAVE_SSL
 # include "gen_sslfunc.h"