2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 14:35:29 +00:00

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

This commit is contained in:
JINMEI Tatuya
2011-12-22 10:03:46 -08:00
parent 4efd3d6cab
commit c5b51bb888

View File

@@ -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