summaryrefslogtreecommitdiffstats
path: root/src/network/access
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@nokia.com>2010-10-27 15:14:03 (GMT)
committerPeter Hartmann <peter.hartmann@nokia.com>2010-10-27 15:19:05 (GMT)
commitf964de82d506a379b9d80b18025491aa3521a2c9 (patch)
treeccb0ef83fb766a278ee9b90a05547300e7d7a724 /src/network/access
parentb5d9dbf28b78aa17bfb70aa2e5fd3da99fe53ff0 (diff)
downloadQt-f964de82d506a379b9d80b18025491aa3521a2c9.zip
Qt-f964de82d506a379b9d80b18025491aa3521a2c9.tar.gz
Qt-f964de82d506a379b9d80b18025491aa3521a2c9.tar.bz2
QNAM: fix build
* winsock2.h conflicts with qplatformdefs.h * ifndef QT_NO_OPENSSL was missing Reviewed-by: Prasanth Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network/access')
-rw-r--r--src/network/access/qhttpnetworkconnection.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/access/qhttpnetworkconnection.cpp b/src/network/access/qhttpnetworkconnection.cpp
index 92f8af7..c335cd4 100644
--- a/src/network/access/qhttpnetworkconnection.cpp
+++ b/src/network/access/qhttpnetworkconnection.cpp
@@ -39,13 +39,13 @@
**
****************************************************************************/
+#include <private/qabstractsocket_p.h>
#include "qhttpnetworkconnection_p.h"
#include "qhttpnetworkconnectionchannel_p.h"
#include "private/qnoncontiguousbytedevice_p.h"
#include <private/qnetworkrequest_p.h>
#include <private/qobject_p.h>
#include <private/qauthenticator_p.h>
-#include <private/qabstractsocket_p.h>
#include <qnetworkproxy.h>
#include <qauthenticator.h>
@@ -129,9 +129,11 @@ void QHttpNetworkConnectionPrivate::pauseConnection()
// Disable all socket notifiers
for (int i = 0; i < channelCount; i++) {
+#ifndef QT_NO_OPENSSL
if (encrypt)
QSslSocketPrivate::pauseSocketNotifiers(static_cast<QSslSocket*>(channels[i].socket));
else
+#endif
QAbstractSocketPrivate::pauseSocketNotifiers(channels[i].socket);
}
}
@@ -141,9 +143,11 @@ void QHttpNetworkConnectionPrivate::resumeConnection()
state = RunningState;
// Enable all socket notifiers
for (int i = 0; i < channelCount; i++) {
+#ifndef QT_NO_OPENSSL
if (encrypt)
QSslSocketPrivate::resumeSocketNotifiers(static_cast<QSslSocket*>(channels[i].socket));
else
+#endif
QAbstractSocketPrivate::resumeSocketNotifiers(channels[i].socket);
// Resume pending upload if needed