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.
--- zurl-1.8.0.orig/configure
+++ zurl-1.8.0/configure
@@ -773,7 +773,9 @@ QStringList qc_splitflags(const QString
 	bool escaped = false;
 	QChar quote, backslash = QLatin1Char('\\\\');
 	QString buf;
+#ifdef PATH_MAX
 	buf.reserve(PATH_MAX);
+#endif
 	for (int i=0; i < flags.length(); i++) {
 		if (searchStart && flags[i].isSpace()) {
 			continue;
--- zurl-1.8.0.orig/src/libzurl/libzurl.pri
+++ zurl-1.8.0/src/libzurl/libzurl.pri
@@ -58,3 +58,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.8.0.orig/src/zurl/zurl.pro
+++ zurl-1.8.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.8.0.orig/tests/tests.pri
+++ zurl-1.8.0/tests/tests.pri
@@ -24,3 +24,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.8.0.orig/tests/websockettest/websockettest.cpp
+++ zurl-1.8.0/tests/websockettest/websockettest.cpp
@@ -169,6 +169,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(dns);
@@ -178,6 +181,7 @@ private slots:
 
 		QVERIFY(sock.errorCondition() == WebSocket::ErrorConnect);
 	}
+*/
 
 	void handshakeConnectError()
 	{
@@ -186,7 +190,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__)
 		QVERIFY(sock.errorCondition() == WebSocket::ErrorConnect);
+#endif
 	}
 
 	void handshakeSuccess()
