$NetBSD: patch-aj,v 1.3 2002/12/17 19:43:41 jmmv Exp $ --- fam/Listener.c++.orig Tue Jul 16 08:14:41 2002 +++ fam/Listener.c++ @@ -22,6 +22,8 @@ #include "Listener.h" +#include +#include #include #include #include @@ -32,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -205,7 +208,7 @@ Listener::create_local_client(TCP_Client unsetenv("TMPDIR"); char *tmpfile = tempnam("/tmp", ".fam"); -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) sockaddr_un sun = { sizeof(sockaddr_un), AF_UNIX, "" }; #else sockaddr_un sun = { AF_UNIX, "" }; @@ -279,7 +282,7 @@ Listener::accept_localclient(int ofd, vo // Get the new socket. -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) struct sockaddr_un sun = { sizeof(sockaddr_un), AF_UNIX, "" }; #else struct sockaddr_un sun = { AF_UNIX, "" }; @@ -345,7 +348,7 @@ Listener::accept_localclient(int ofd, vo void Listener::dirty_ugly_hack() { -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) static sockaddr_un sun = { sizeof (sockaddr_un), AF_UNIX, "/tmp/.fam_socket" }; #else static sockaddr_un sun = { AF_UNIX, "/tmp/.fam_socket" };