diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp
index 7d451d561..24610f7eb 100644
--- a/code/nel/src/gui/group_html.cpp
+++ b/code/nel/src/gui/group_html.cpp
@@ -2087,14 +2087,14 @@ namespace NLGUI
clearContext();
MultiCurl = curl_multi_init();
+#ifdef CURLMOPT_MAX_HOST_CONNECTIONS
if (MultiCurl)
{
-#ifdef CURLMOPT_MAX_HOST_CONNECTIONS
// added in libcurl 7.30.0
curl_multi_setopt(MultiCurl, CURLMOPT_MAX_HOST_CONNECTIONS, options.curlMaxConnections);
-#endif
curl_multi_setopt(MultiCurl, CURLMOPT_PIPELINING, 1);
}
+#endif
RunningCurls = 0;
_CurlWWW = NULL;