From a81db41dbc8d7c6466bf93cc327bf54a0e6e0f42 Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Fri, 8 Aug 2008 14:49:23 +0000 Subject: [PATCH] QNX defines AI_V4MAPPED, AI_ALL and AI_ADDRCONFIG but does not implement them. [SVN r48033] --- include/boost/asio/ip/resolver_query_base.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/boost/asio/ip/resolver_query_base.hpp b/include/boost/asio/ip/resolver_query_base.hpp index 62b1ba58..67b5c805 100644 --- a/include/boost/asio/ip/resolver_query_base.hpp +++ b/include/boost/asio/ip/resolver_query_base.hpp @@ -70,17 +70,19 @@ public: # else BOOST_STATIC_CONSTANT(int, numeric_service = 0); # endif -# if defined(AI_V4MAPPED) + // Note: QNX Neutrino 6.3 defines AI_V4MAPPED, AI_ALL and AI_ADDRCONFIG but + // does not implement them. Therefore they are specifically excluded here. +# if defined(AI_V4MAPPED) && !defined(__QNXNTO__) BOOST_STATIC_CONSTANT(int, v4_mapped = AI_V4MAPPED); # else BOOST_STATIC_CONSTANT(int, v4_mapped = 0); # endif -# if defined(AI_ALL) +# if defined(AI_ALL) && !defined(__QNXNTO__) BOOST_STATIC_CONSTANT(int, all_matching = AI_ALL); # else BOOST_STATIC_CONSTANT(int, all_matching = 0); # endif -# if defined(AI_ADDRCONFIG) +# if defined(AI_ADDRCONFIG) && !defined(__QNXNTO__) BOOST_STATIC_CONSTANT(int, address_configured = AI_ADDRCONFIG); # else BOOST_STATIC_CONSTANT(int, address_configured = 0);