aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/listen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/listen.c b/src/listen.c
index 1a52202ac..ab74f8d02 100644
--- a/src/listen.c
+++ b/src/listen.c
@@ -97,7 +97,7 @@ static int establishListen(int pf, const struct sockaddr *addrp,
if (listen(sock, 5) < 0)
FATAL("problems listen'ing: %s\n", strerror(errno));
-#if defined(HAVE_UN) && defined(SO_PASSCRED)
+#ifdef HAVE_UCRED
setsockopt(sock, SOL_SOCKET, SO_PASSCRED, &passcred, sizeof(passcred));
#endif
@@ -265,7 +265,7 @@ void freeAllListenSockets(void)
static int get_remote_uid(int fd)
{
-#if defined(HAVE_UN) && defined(SO_PEERCRED)
+#ifdef HAVE_UCRED
struct ucred cred;
socklen_t len = sizeof (cred);