Make QtNetwork compile with qconfig small
Task-number: QTBUG-24816 Change-Id: I8c7965e4498794db93ee51c8511c9a72071ddce3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
2d450f8f6e
commit
13b0a5f8bd
@ -54,6 +54,8 @@
|
|||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
|
#ifndef QT_NO_LIBRARY
|
||||||
|
|
||||||
typedef int (*dn_expand_proto)(const unsigned char *, const unsigned char *, const unsigned char *, char *, int);
|
typedef int (*dn_expand_proto)(const unsigned char *, const unsigned char *, const unsigned char *, char *, int);
|
||||||
static dn_expand_proto local_dn_expand = 0;
|
static dn_expand_proto local_dn_expand = 0;
|
||||||
typedef void (*res_nclose_proto)(res_state);
|
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
|
QT_END_NAMESPACE
|
||||||
|
Loading…
Reference in New Issue
Block a user