Browse Source

[master] applied workaround for build error with macos+clang+static link.

JINMEI Tatuya 13 years ago
parent
commit
c5b51bb888
1 changed files with 11 additions and 7 deletions
  1. 11 7
      src/lib/python/isc/util/io/socketsessionforwarder_python.cc

+ 11 - 7
src/lib/python/isc/util/io/socketsessionforwarder_python.cc

@@ -52,6 +52,17 @@ s_SocketSessionForwarder::s_SocketSessionForwarder() : cppobj(NULL) {
 // Import pydoc text
 #include "socketsessionforwarder_inc.cc"
 
+// See python/isc/log/log.cc for the use of namespace
+namespace clang_unnamed_namespace_workaround {
+// Internal exception class thrown when address parsing fails
+class AddressParseError: public isc::Exception {
+public:
+    AddressParseError(const char *file, size_t line, const char *what):
+        isc::Exception(file, line, what) {}
+};
+}
+using namespace clang_unnamed_namespace_workaround;
+
 namespace {
 
 int
@@ -87,13 +98,6 @@ SocketSessionForwarder_destroy(PyObject* po_self) {
     Py_TYPE(self)->tp_free(self);
 }
 
-// Internal exception class thrown when address parsing fails
-class AddressParseError: public isc::Exception {
-public:
-    AddressParseError(const char *file, size_t line, const char *what):
-        isc::Exception(file, line, what) {}
-};
-
 // Convert a Python socket address object to an addrinfo structure by
 // getaddrinfo.
 void