diff --git a/common/http.h b/common/http.h
--- a/llama.cpp/common/http.h
+++ b/llama.cpp/common/http.h
@@ -104,7 +104,7 @@ static std::pair<httplib::Client, common_http_url> common_http_client(const std:
         throw std::runtime_error("error: invalid URL format");
     }
 
-#ifndef CPPHTTPLIB_OPENSSL_SUPPORT
+#ifndef CPPHTTPLIB_SSL_ENABLED
     if (parts.scheme == "https") {
         throw std::runtime_error(
             "HTTPS is not supported. Please rebuild with one of:\n"
