$NetBSD: patch-aa,v 1.7.2.2 2009/05/03 12:29:53 spz Exp $

--- src/rpc/scgi.cc.orig	2008-05-07 13:19:10.000000000 +0100
+++ src/rpc/scgi.cc	2009-04-10 09:45:10.000000000 +0100
@@ -88,7 +88,12 @@
   char buffer[sizeof(sockaddr_un) + filename.size()];
   sockaddr_un* sa = reinterpret_cast<sockaddr_un*>(buffer);
 
+#if defined(sun) || defined(__sun) 
+  sa->sun_family = AF_UNIX;
+#else
   sa->sun_family = AF_LOCAL;
+#endif
+
   std::memcpy(sa->sun_path, filename.c_str(), filename.size() + 1);
 
   if (!get_fd().open_local())
