summaryrefslogtreecommitdiffstats
path: root/tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-05-19 06:22:47 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-05-19 06:29:01 (GMT)
commit4ccc8d2fd1c6ae51d2459e80f655a2c2ac60e3c0 (patch)
tree7be88ed2f95eb6b065ae092af677b7c3a8cb9a7e /tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp
parentd9090aa0f4d5c43dce0984594ab9c74a57bff634 (diff)
downloadQt-4ccc8d2fd1c6ae51d2459e80f655a2c2ac60e3c0.zip
Qt-4ccc8d2fd1c6ae51d2459e80f655a2c2ac60e3c0.tar.gz
Qt-4ccc8d2fd1c6ae51d2459e80f655a2c2ac60e3c0.tar.bz2
Fix build on Mac OS X and Windows.
Diffstat (limited to 'tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp')
-rw-r--r--tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp b/tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp
index 6dfc0b5..c732a5b 100644
--- a/tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp
+++ b/tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp
@@ -45,7 +45,7 @@
#include <QtNetwork/qnetworkconfiguration.h>
#include <QtNetwork/qnetworkconfigmanager.h>
-#ifndef QT_NO_ICD
+#if defined(Q_OS_UNIX) && !defined(QT_NO_ICD)
#include <stdio.h>
#include <iapconf.h>
#endif
@@ -67,7 +67,7 @@ private slots:
void configurationFromIdentifier();
private:
-#ifndef QT_NO_ICD
+#if defined(Q_OS_UNIX) && !defined(QT_NO_ICD)
Maemo::IAPConf *iapconf;
Maemo::IAPConf *iapconf2;
Maemo::IAPConf *gprsiap;
@@ -79,7 +79,7 @@ private:
void tst_QNetworkConfigurationManager::initTestCase()
{
-#ifndef QT_NO_ICD
+#if defined(Q_OS_UNIX) && !defined(QT_NO_ICD)
iapconf = new Maemo::IAPConf("007");
iapconf->setValue("ipv4_type", "AUTO");
iapconf->setValue("wlan_wepkey1", "connt");
@@ -153,7 +153,7 @@ void tst_QNetworkConfigurationManager::initTestCase()
void tst_QNetworkConfigurationManager::cleanupTestCase()
{
-#ifndef QT_NO_ICD
+#if defined(Q_OS_UNIX) && !defined(QT_NO_ICD)
iapconf->clear();
delete iapconf;
iapconf2->clear();