From: Michael Jeanson Date: Wed, 3 Aug 2016 18:25:25 +0000 (-0400) Subject: Port: Add OSX compat to sessiond-comm/unix.c X-Git-Tag: v2.9.0-rc1~67 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bfa419e418fbc7c625042e392286f84a168aaff8;p=lttng-tools.git Port: Add OSX compat to sessiond-comm/unix.c Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/unix.c b/src/common/unix.c index e294936ca..0e94bbc2b 100644 --- a/src/common/unix.c +++ b/src/common/unix.c @@ -525,7 +525,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__) || defined(__sun__)) +#elif (defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__) || defined(__APPLE__)) { int peer_ret; @@ -558,7 +558,7 @@ int lttcomm_setsockopt_creds_unix_sock(int sock) } return ret; } -#elif (defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__)) +#elif (defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__) || defined(__APPLE__)) LTTNG_HIDDEN int lttcomm_setsockopt_creds_unix_sock(int sock) {