Check AI_NUMERICSERV is defined before using it
authorJonathan Wakely <jwakely@redhat.com>
Thu, 10 Jan 2019 13:21:54 +0000 (13:21 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 10 Jan 2019 13:21:54 +0000 (13:21 +0000)
commitcbe0bca4040e592889f022be23f9602a24487985
tree52e8698eea13b0734dfc744626be60deea91a589
parentc3799b164fac7576ada4cad5a5069cbe911b4849
Check AI_NUMERICSERV is defined before using it

The AI_NUMERICSERV constant is missing from old Darwin systems, so only
use it if it's supported.

* include/experimental/internet [AI_NUMERICSERV]
(resolver_base::numeric_service): Define conditionally.
* testsuite/experimental/net/internet/resolver/base.cc: Test it
conditionally.
* testsuite/experimental/net/internet/resolver/ops/lookup.cc:
Likewise.

From-SVN: r267809
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/internet
libstdc++-v3/testsuite/experimental/net/internet/resolver/base.cc
libstdc++-v3/testsuite/experimental/net/internet/resolver/ops/lookup.cc