diff options
author | OBATA Akio <obache@wizdas.com> | 2020-07-09 11:00:32 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-07-09 18:59:40 +0900 |
commit | b79f0a7caabbf6e3523dad0a284466a672bc9940 (patch) | |
tree | 9ed495cedf8c23ffefe1f6a736aa3f98eaae98c9 /src | |
parent | a92e2272b838de6cf3045eaf8307de07cfae57ac (diff) | |
download | tqt3-b79f0a7caabbf6e3523dad0a284466a672bc9940.tar.gz tqt3-b79f0a7caabbf6e3523dad0a284466a672bc9940.zip |
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 to glibc at pre 2.3 release with
`__RES == 19991006`.
Signed-off-by: OBATA Akio <obache@wizdas.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/network/qdns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/qdns.cpp b/src/network/qdns.cpp index 780d119ab..9dcd73dab 100644 --- a/src/network/qdns.cpp +++ b/src/network/qdns.cpp @@ -102,7 +102,7 @@ static TQ_UINT32 now() return 0; } -#if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 3))) +#if defined(__RES) && (__RES >= 19980901) #define Q_MODERN_RES_API #else #endif |