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>
pull/27/head
OBATA Akio 4 years ago committed by Michele Calgaro
parent a92e2272b8
commit b79f0a7caa
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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

Loading…
Cancel
Save