diff options
author | OBATA Akio <[email protected]> | 2020-07-08 17:22:01 +0900 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2021-02-02 01:24:47 +0100 |
commit | 7e71ac3dd2dabb32740c3c5f8fe926be9f02b2c3 (patch) | |
tree | 6c5b8f94f0a6e26284099412ba79ba7afcab001d | |
parent | 9f25ff572147d25b561dcbba55afc400c7d677b6 (diff) | |
download | qt3-7e71ac3dd2dabb32740c3c5f8fe926be9f02b2c3.tar.gz qt3-7e71ac3dd2dabb32740c3c5f8fe926be9f02b2c3.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 in glibc in pre 2.3 release with
__RES == 19991006.
Signed-off-by: OBATA Akio <[email protected]>
(cherry picked from commit b676c7f90b894b7c715d924c53b9dc4b4fef4589)
-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 0b41d6c..223ef0b 100644 --- a/src/network/qdns.cpp +++ b/src/network/qdns.cpp @@ -102,7 +102,7 @@ static Q_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 |