diff options
author | skolb <none@none> | 2009-10-14 10:10:46 -0700 |
---|---|---|
committer | skolb <none@none> | 2009-10-14 10:10:46 -0700 |
commit | 1b1550f284316b244a10a4a6604fedb5d6b18965 (patch) | |
tree | 2416742bb0fa10c646c8490c39c3442fa73f1924 /indra/llmessage/llares.h | |
parent | 1d63b145481021c5d0ed16bd0c10c320170d0cf5 (diff) | |
parent | b5768a69b18936282cf55f0a1ecb72ba19849836 (diff) |
Merge
Diffstat (limited to 'indra/llmessage/llares.h')
-rw-r--r-- | indra/llmessage/llares.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llmessage/llares.h b/indra/llmessage/llares.h index c709a08499..78febcd560 100644 --- a/indra/llmessage/llares.h +++ b/indra/llmessage/llares.h @@ -36,7 +36,13 @@ #define LL_LLARES_H #ifdef LL_WINDOWS +// ares.h is broken on windows in that it depends on types defined in ws2tcpip.h +// we need to include them first to work around it, but the headers issue warnings +# pragma warning(push) +# pragma warning(disable:4996) +# include <winsock2.h> # include <ws2tcpip.h> +# pragma warning(pop) #endif #ifdef LL_STANDALONE @@ -49,7 +55,10 @@ #include "llrefcount.h" #include "lluri.h" +#include <boost/shared_ptr.hpp> + class LLQueryResponder; +class LLAresListener; /** * @brief Supported DNS RR types. @@ -444,6 +453,9 @@ public: protected: ares_channel chan_; bool mInitSuccess; + // boost::scoped_ptr would actually fit the requirement better, but it + // can't handle incomplete types as boost::shared_ptr can. + boost::shared_ptr<LLAresListener> mListener; }; /** |