Haiku has struct ucred but no SO_PASSCRED (yet).
---
src/net/SocketUtil.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/net/SocketUtil.cxx b/src/net/SocketUtil.cxx
index b2ea639..72d7108 100644
--- a/src/net/SocketUtil.cxx
+++ b/src/net/SocketUtil.cxx
@@ -69,7 +69,7 @@ socket_bind_listen(int domain, int type, int protocol,
return -1;
}
-#ifdef HAVE_STRUCT_UCRED
+#if defined(HAVE_STRUCT_UCRED) && defined(SO_PASSCRED)
setsockopt(fd, SOL_SOCKET, SO_PASSCRED,
(const char *) &reuse, sizeof(reuse));
#endif
--
2.2.2
_______________________________________________
mpd-devel mailing list
[email protected]
http://mailman.blarg.de/listinfo/mpd-devel