[Refactoring] Improved rdr::Exception constructor. It now accepts variable
number of arguments.

[Bugfix] Minor compilation fixes (missing #includes)


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3168 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rdr/Exception.cxx b/common/rdr/Exception.cxx
index 7d38711..a0a08f0 100644
--- a/common/rdr/Exception.cxx
+++ b/common/rdr/Exception.cxx
@@ -22,8 +22,21 @@
 #include <windows.h>
 #endif
 
+#include <string.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <os/print.h>
+
 using namespace rdr;
 
+Exception::Exception(const char *format, ...) {
+	va_list ap;
+
+	va_start(ap, format);
+	(void) vsnprintf(str_, len, format, ap);
+	va_end(ap);
+}
+
 SystemException::SystemException(const char* s, int err_)
   : Exception(s), err(err_)
 {