Improve modern res API available condition

`__RES` is usable to check release date of resolver library.
Such modern res API appeared in BIND-8.2.0 libbind with __RES == 19980901,
it was refrected as BIND-8.2.2-P5 in glibc in pre 2.3 release with
__RES == 19991006.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit b676c7f90b)
v3.5.13-sru
OBATA Akio 4 years ago committed by Slávek Banko
parent 0dca9724e9
commit 8a351bdbd9
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -102,7 +102,6 @@ static Q_UINT32 now()
return 0;
}
static QPtrList<QHostAddress> * ns = 0;
static QStrList * domains = 0;
static bool ipv6support = FALSE;
@ -2539,7 +2538,7 @@ void QDns::doSynchronousLookup()
}
#endif
#if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 3)))
#if defined(__RES) && (__RES >= 19980901)
#define Q_MODERN_RES_API
#else
#endif

Loading…
Cancel
Save