summaryrefslogtreecommitdiffstats
path: root/tests/auto/network-settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/network-settings.h')
-rw-r--r--tests/auto/network-settings.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/network-settings.h b/tests/auto/network-settings.h
index 50955781c2..33b29f105c 100644
--- a/tests/auto/network-settings.h
+++ b/tests/auto/network-settings.h
@@ -1,5 +1,5 @@
// Copyright (C) 2019 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QString>
#include <QTest>
@@ -92,8 +92,11 @@ public:
static bool hasIPv6()
{
-#ifdef Q_OS_UNIX
- #if !defined(QT_NO_GETIFADDRS) && !defined(QT_NO_IPV6IFNAME)
+#if defined(Q_OS_QNX)
+ // Qt's support for IPv6 on QNX appears to be broken.
+ // This is an unaccepable situation after 2011-01-31.
+ return false;
+#elif defined(Q_OS_UNIX)
int s = ::socket(AF_INET6, SOCK_DGRAM, 0);
if (s == -1)
return false;
@@ -108,9 +111,6 @@ public:
}
}
::close(s);
- #else
- return false;
- #endif
#endif
return true;
}