cares-functions.m4: update thread-safeness detection of getaddrinfo()
authorYang Tse <yangsita@gmail.com>
Sat, 15 Dec 2012 16:36:09 +0000 (17:36 +0100)
committerYang Tse <yangsita@gmail.com>
Sat, 15 Dec 2012 16:36:09 +0000 (17:36 +0100)
commita28e44c34448b52159e3e1549d04c4b97e1a6d7b
tree1245437355901731dc83009b705bf345f299c8ed
parent4ed0fc2d448d70dd079a311fa9804d504968942f
cares-functions.m4: update thread-safeness detection of getaddrinfo()

Take in account that POSIX standard Issue 7 drops h_errno support. Now, we also
consider getaddrinfo() to be thread-safe when (_POSIX_C_SOURCE >= 200809L) or
(_XOPEN_SOURCE >= 700) independently of whether h_errno exists or not.

Take in account that h_errno might be a modifiable lvalue not defined as
a C preprocessor macro.
m4/cares-functions.m4