diff options
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/ServerSocket.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/event/ServerSocket.cxx b/src/event/ServerSocket.cxx index 38f84b873..4ff5481e7 100644 --- a/src/event/ServerSocket.cxx +++ b/src/event/ServerSocket.cxx @@ -402,6 +402,11 @@ ServerSocket::AddPath(AllocatedPath &&path) void ServerSocket::AddAbstract(const char *name) { +#if !defined(HAVE_UN) + (void)name; + + throw std::runtime_error("Local socket support is disabled"); +#else assert(name != nullptr); assert(*name == '@'); @@ -409,6 +414,7 @@ ServerSocket::AddAbstract(const char *name) address.SetLocal(name); AddAddress(std::move(address)); +#endif } #endif |