The https only patch introduced a compile error coming out with
configure --without-ssl.

Here is a fix.

Tim
>From 030256ed3c11cf063500c1b120f7ee03f4a9cf1e Mon Sep 17 00:00:00 2001
From: Tim Ruehsen <[email protected]>
Date: Fri, 13 Sep 2013 11:21:38 +0200
Subject: [PATCH] fix --without-ssl compile error

---
 src/ChangeLog | 5 +++++
 src/recur.c   | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/src/ChangeLog b/src/ChangeLog
index ed8ebef..ddf92e4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
 2013-09-09  Tim Ruehsen  <[email protected]>
 
+	* recur.c (download_child_p): fix compile error when
+	  configured using --without-ssl.
+
+2013-09-09  Tim Ruehsen  <[email protected]>
+
 	* gnutls.c (ssl_connect_wget): changed checking of option "PFS"
 	  to be better prepared for some kinds of backports.
 	  Reported by: Daniel Kahn Gillmor <[email protected]>
diff --git a/src/recur.c b/src/recur.c
index edf34d4..d32a1b3 100644
--- a/src/recur.c
+++ b/src/recur.c
@@ -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);
-- 
1.8.4.rc3

Reply via email to