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:
@@ -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
|
||||
|
Reference in New Issue
Block a user