From e0596f2d33405bb3ed4806ab5f89b546d1e7857f Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 28 Jan 2014 09:57:56 +0100 Subject: [PATCH] Fix UNIX sockets on FreeBSD. Fixes #5567 --- lib/base/unixsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/unixsocket.cpp b/lib/base/unixsocket.cpp index 6250dd003..c859a0e8c 100644 --- a/lib/base/unixsocket.cpp +++ b/lib/base/unixsocket.cpp @@ -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()