Commit 8fc3c5c6 authored by Max Kellermann's avatar Max Kellermann

event/ServerSocket: add HAVE_UN check to AddAbstract()

parent 4f408bd9
ver 0.21.7 (not yet released)
* require Meson 0.49.0 for native libgcrypt-config support
* fix build failure with -Dlocal_socket=false
ver 0.21.6 (2019/03/17)
* protocol
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment