summaryrefslogtreecommitdiff
path: root/indra/llmessage/llares.h
diff options
context:
space:
mode:
authorSteve Bennetts <steve@lindenlab.com>2009-10-22 13:10:59 -0700
committerSteve Bennetts <steve@lindenlab.com>2009-10-22 13:10:59 -0700
commitb8ce05ed08a7db0825c04c217888814ef523027a (patch)
treecae04332048f649e1280d3bdc3d20f46df773e67 /indra/llmessage/llares.h
parente5484e56b3c13e65bd31d7bf21c1cd3a2d9333f2 (diff)
parenta464d469705aeae57fcdbfafa45e2bf592a182c5 (diff)
merge
Diffstat (limited to 'indra/llmessage/llares.h')
-rw-r--r--indra/llmessage/llares.h12
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;
};
/**