diff --git a/indra/llcommon/llhandle.h b/indra/llcommon/llhandle.h
index dfbfb91fc1de9b9802652d2e8b9a0a22b1d8ca3a..98ad7af81ac1453d76fbff6a05ff4e8e479186b4 100644
--- a/indra/llcommon/llhandle.h
+++ b/indra/llcommon/llhandle.h
@@ -28,8 +28,10 @@
 #define LLHANDLE_H
 
 #include "llpointer.h"
+#include <stdexcept>
 #include <boost/type_traits/is_convertible.hpp>
 #include <boost/utility/enable_if.hpp>
+#include <boost/throw_exception.hpp>
 
 /**
  * Helper object for LLHandle. Don't instantiate these directly, used
@@ -216,7 +218,7 @@ class LLHandleProvider
 /*
  * $TODO: Derive from LLException
  */
-struct LLExeceptionStaleHandle : public std::runtime_error
+class LLExeceptionStaleHandle : public std::runtime_error
 {
 public:
     LLExeceptionStaleHandle():