]> sjero.net Git - wget/commitdiff
fix --without-ssl compile error
authorTim Ruehsen <tim.ruehsen@gmx.de>
Fri, 13 Sep 2013 09:21:38 +0000 (11:21 +0200)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Sat, 14 Sep 2013 09:35:43 +0000 (11:35 +0200)
src/ChangeLog
src/recur.c

index 787c9c6067b9976a6255c28b801a098442c13eb7..43997f88d5ae2111616c698e72e4682e7d341914 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-13  Tim Ruehsen  <tim.ruehsen@gmx.de>
+
+       * recur.c (download_child_p): fix compile error when
+         configured using --without-ssl.
+
 2013-09-07  Tim Ruehsen  <tim.ruehsen@gmx.de>
 
        * gnutls.c (ssl_connect_wget): use gnutls_check_version()
index edf34d42525cbe39b269f1440e9454cbe58fab11..d32a1b389f24144119a550809a32eab995acc621 100644 (file)
@@ -526,11 +526,13 @@ download_child_p (const struct urlpos *upos, struct url *parent, int depth,
      More time- and memory- consuming tests should be put later on
      the list.  */
 
+#ifdef HAVE_SSL
   if (opt.https_only && u->scheme != SCHEME_HTTPS)
     {
       DEBUGP (("Not following non-HTTPS links.\n"));
       goto out;
     }
+#endif
 
   /* Determine whether URL under consideration has a HTTP-like scheme. */
   u_scheme_like_http = schemes_are_similar_p (u->scheme, SCHEME_HTTP);