X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fsessiond-comm%2Funix.c;h=cf2c17ff7ad62444861d562cb9ec42c09d8e1077;hp=cf285c7e2dc83e8bb8c92d9d45769d589c1015a5;hb=0641441730f08fa4f489db13621edbd85831ea4e;hpb=507af6fc151b69a9b7c243e30387da303c5b83cc;ds=sidebyside 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) {