From: Michael Jeanson Date: Wed, 3 Aug 2016 18:35:27 +0000 (-0400) Subject: Port: Add OSX support to socket compat X-Git-Tag: v2.9.0-rc1~64 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d05d6fe165c27f077445d1c213becd077173adab;p=lttng-tools.git Port: Add OSX support to socket compat Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/compat/socket.h b/src/common/compat/socket.h index 78610957b..8a1cef157 100644 --- a/src/common/compat/socket.h +++ b/src/common/compat/socket.h @@ -122,7 +122,7 @@ typedef struct ucred lttng_sock_cred; #define LTTNG_SOCK_GET_GID_CRED(c) LTTNG_REF(c)->gid #define LTTNG_SOCK_GET_PID_CRED(c) LTTNG_REF(c)->pid -#elif (defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__)) +#elif (defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__) || defined(__APPLE__)) struct lttng_sock_cred { uid_t uid;