Fix UNIX sockets on FreeBSD.

Fixes #5567
This commit is contained in:
Gunnar Beutner 2014-01-28 09:57:56 +01:00
parent a2e504bd01
commit e0596f2d33
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ using namespace icinga;
UnixSocket::UnixSocket(void)
{
int fd = socket(AF_UNIX, SOCK_STREAM, PF_UNIX);
int fd = socket(AF_UNIX, SOCK_STREAM, 0);
if (fd < 0) {
BOOST_THROW_EXCEPTION(posix_error()