diff options
-rw-r--r-- | networking/wget.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/wget.c b/networking/wget.c index d4a9c0cb1..af9c53c22 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -147,7 +147,9 @@ struct host_info { | |||
147 | }; | 147 | }; |
148 | static const char P_FTP[] = "ftp"; | 148 | static const char P_FTP[] = "ftp"; |
149 | static const char P_HTTP[] = "http"; | 149 | static const char P_HTTP[] = "http"; |
150 | #if ENABLE_FEATURE_WGET_OPENSSL || ENABLE_FEATURE_WGET_SSL_HELPER | ||
150 | static const char P_HTTPS[] = "https"; | 151 | static const char P_HTTPS[] = "https"; |
152 | #endif | ||
151 | 153 | ||
152 | #if ENABLE_FEATURE_WGET_LONG_OPTIONS | 154 | #if ENABLE_FEATURE_WGET_LONG_OPTIONS |
153 | /* User-specified headers prevent using our corresponding built-in headers. */ | 155 | /* User-specified headers prevent using our corresponding built-in headers. */ |
@@ -410,10 +412,12 @@ static void parse_url(const char *src_url, struct host_info *h) | |||
410 | if (strcmp(url, P_FTP) == 0) { | 412 | if (strcmp(url, P_FTP) == 0) { |
411 | h->port = bb_lookup_port(P_FTP, "tcp", 21); | 413 | h->port = bb_lookup_port(P_FTP, "tcp", 21); |
412 | } else | 414 | } else |
415 | #if ENABLE_FEATURE_WGET_OPENSSL || ENABLE_FEATURE_WGET_SSL_HELPER | ||
413 | if (strcmp(url, P_HTTPS) == 0) { | 416 | if (strcmp(url, P_HTTPS) == 0) { |
414 | h->port = bb_lookup_port(P_HTTPS, "tcp", 443); | 417 | h->port = bb_lookup_port(P_HTTPS, "tcp", 443); |
415 | h->protocol = P_HTTPS; | 418 | h->protocol = P_HTTPS; |
416 | } else | 419 | } else |
420 | #endif | ||
417 | if (strcmp(url, P_HTTP) == 0) { | 421 | if (strcmp(url, P_HTTP) == 0) { |
418 | http: | 422 | http: |
419 | h->port = bb_lookup_port(P_HTTP, "tcp", 80); | 423 | h->port = bb_lookup_port(P_HTTP, "tcp", 80); |