This patch contains the differences between the upstream tarball and
the sources actually used for building the package.

Option single-debian-patch is used as the changes are tracked in git.
--- /dev/null
+++ zurl-1.12.0/header.GPL
@@ -0,0 +1,19 @@
+ *
+ * Zurl is free software: you can redistribute it and/or modify it under the
+ * terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version.
+ *
+ * Zurl is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Alternatively, Zurl may be used under the terms of a commercial license,
+ * where the commercial license agreement is provided with the software or
+ * contained in a written agreement between you and Fanout. For further
+ * information use the contact form at <https://fanout.io/enterprise/>.
+ *
--- zurl-1.12.0.orig/src/httprequest.cpp
+++ zurl-1.12.0/src/httprequest.cpp
@@ -713,10 +713,10 @@ public:
 		return self->socketFunction(easy, s, action, socketp);
 	}
 
-	static void timerFunction_cb(CURLM *multi, long timeout_ms, void *userp)
+	static int timerFunction_cb(CURLM *multi, long timeout_ms, void *userp)
 	{
 		CurlConnectionManager *self = (CurlConnectionManager *)userp;
-		self->timerFunction(multi, timeout_ms);
+		return self->timerFunction(multi, timeout_ms);
 	}
 
 	int socketFunction(CURL *easy, curl_socket_t s, int action, void *socketp)
@@ -772,7 +772,7 @@ public:
 		return 0;
 	}
 
-	void timerFunction(CURLM *multi, long timeout_ms)
+	int timerFunction(CURLM *multi, long timeout_ms)
 	{
 		Q_UNUSED(multi);
 
@@ -786,6 +786,7 @@ public:
 			log_debug("timerFunction: cancel timer");
 			timer->stop();
 		}
+		return 0;
 	}
 
 	void doSocketAction(bool all, int sockfd, int ev_bitmask)
--- zurl-1.12.0.orig/src/libzurl/libzurl.pri
+++ zurl-1.12.0/src/libzurl/libzurl.pri
@@ -49,3 +49,8 @@ HEADERS += \
 
 SOURCES += \
 	$$SRC_DIR/worker.cpp
+
+QMAKE_CXXFLAGS += $(Q_CXXFLAGS)
+QMAKE_CFLAGS_DEBUG += $(Q_CFLAGS)
+QMAKE_CFLAGS_RELEASE += $(Q_CFLAGS)
+QMAKE_LFLAGS += $(Q_LDFLAGS)
--- zurl-1.12.0.orig/src/zurl/zurl.pro
+++ zurl-1.12.0/src/zurl/zurl.pro
@@ -20,3 +20,8 @@ unix:!isEmpty(BINDIR) {
 	target.path = $$BINDIR
 	INSTALLS += target
 }
+
+QMAKE_CXXFLAGS += $(Q_CXXFLAGS)
+QMAKE_CFLAGS_DEBUG += $(Q_CFLAGS)
+QMAKE_CFLAGS_RELEASE += $(Q_CFLAGS)
+QMAKE_LFLAGS += $(Q_LDFLAGS)
--- zurl-1.12.0.orig/tests/tests.pri
+++ zurl-1.12.0/tests/tests.pri
@@ -23,3 +23,8 @@ use_curl {
 } else {
 	DEFINES += USE_QNAM
 }
+
+QMAKE_CXXFLAGS += $(Q_CXXFLAGS)
+QMAKE_CFLAGS_DEBUG += $(Q_CFLAGS)
+QMAKE_CFLAGS_RELEASE += $(Q_CFLAGS)
+QMAKE_LFLAGS += $(Q_LDFLAGS)
--- zurl-1.12.0.orig/tests/websockettest/websockettest.cpp
+++ zurl-1.12.0/tests/websockettest/websockettest.cpp
@@ -173,6 +173,9 @@ private slots:
 		delete server;
 	}
 
+/* Testing for DNS error handling isn't possible without network access,
+   and network access isn't allowed during debian builds.
+
 	void handshakeDnsError()
 	{
 		WebSocket sock;
@@ -182,6 +185,7 @@ private slots:
 
 		QCOMPARE(sock.errorCondition(), WebSocket::ErrorConnect);
 	}
+*/
 
 	void handshakeConnectError()
 	{
@@ -190,7 +194,15 @@ private slots:
 		sock.start(QString("http://localhost:1/"));
 		waitForSignal(&spy);
 
+
+		qDebug("sock.errorConnection() returns %d",sock.errorCondition());
+// Test disabled on BSD kernel.
+// Workaround for issue on debian buildd. Which is, quite possibly, not
+// caused by the BSD kernel itself, but by the buildd configuration: After all, the
+// buildds don't guarantee any network access.
+#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
 		QCOMPARE(sock.errorCondition(), WebSocket::ErrorConnect);
+#endif
 	}
 
 	void handshakeSuccess()
