summaryrefslogtreecommitdiffstats
path: root/src/network/kernel/qdnslookup_unix.cpp
diff options
context:
space:
mode:
authorJeremy Katz <jeremy.katz@nokia.com>2012-06-28 15:09:13 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-01 06:47:43 +0200
commit13b0a5f8bd992f456f36c0e7781150c55c75d90a (patch)
tree39d5abcec9d3a0460f4c371402ada49278e41336 /src/network/kernel/qdnslookup_unix.cpp
parent2d450f8f6ed446d9a1a69364a3078374d354c7b8 (diff)
Make QtNetwork compile with qconfig small
Task-number: QTBUG-24816 Change-Id: I8c7965e4498794db93ee51c8511c9a72071ddce3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/kernel/qdnslookup_unix.cpp')
-rw-r--r--src/network/kernel/qdnslookup_unix.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/network/kernel/qdnslookup_unix.cpp b/src/network/kernel/qdnslookup_unix.cpp
index 7767dac45a..300f99d232 100644
--- a/src/network/kernel/qdnslookup_unix.cpp
+++ b/src/network/kernel/qdnslookup_unix.cpp
@@ -54,6 +54,8 @@
QT_BEGIN_NAMESPACE
+#ifndef QT_NO_LIBRARY
+
typedef int (*dn_expand_proto)(const unsigned char *, const unsigned char *, const unsigned char *, char *, int);
static dn_expand_proto local_dn_expand = 0;
typedef void (*res_nclose_proto)(res_state);
@@ -319,4 +321,17 @@ void QDnsLookupRunnable::query(const int requestType, const QByteArray &requestN
}
}
+#else
+
+void QDnsLookupRunnable::query(const int requestType, const QByteArray &requestName, QDnsLookupReply *reply)
+{
+ Q_UNUSED(requestType)
+ Q_UNUSED(requestName)
+ reply->error = QDnsLookup::ResolverError;
+ reply->errorString = tr("Resolver library can't be loaded: No runtime library loading support");
+ return;
+}
+
+#endif /* ifndef QT_NO_LIBRARY */
+
QT_END_NAMESPACE