From 0641441730f08fa4f489db13621edbd85831ea4e Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 15 Oct 2015 14:18:15 -0400 Subject: [PATCH] Port: Add Solaris compat to sessiond-comm/unix.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- src/common/sessiond-comm/unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/sessiond-comm/unix.c b/src/common/sessiond-comm/unix.c index cf285c7e2..cf2c17ff7 100644 --- a/src/common/sessiond-comm/unix.c +++ b/src/common/sessiond-comm/unix.c @@ -524,7 +524,7 @@ ssize_t lttcomm_recv_creds_unix_sock(int sock, void *buf, size_t len, } memcpy(creds, CMSG_DATA(cmptr), sizeof_cred); -#elif (defined(__FreeBSD__) || defined(__CYGWIN__)) +#elif (defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__)) { int peer_ret; @@ -557,7 +557,7 @@ int lttcomm_setsockopt_creds_unix_sock(int sock) } return ret; } -#elif (defined(__FreeBSD__) || defined(__CYGWIN__)) +#elif (defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__)) LTTNG_HIDDEN int lttcomm_setsockopt_creds_unix_sock(int sock) { -- 2.34.1