Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
#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__)
+#elif (defined(__FreeBSD__) || defined(__CYGWIN__))
struct lttng_sock_cred {
uid_t uid;
}
memcpy(creds, CMSG_DATA(cmptr), sizeof_cred);
-#elif defined(__FreeBSD__)
+#elif (defined(__FreeBSD__) || defined(__CYGWIN__))
{
int peer_ret;
}
return ret;
}
-#elif defined(__FreeBSD__)
+#elif (defined(__FreeBSD__) || defined(__CYGWIN__))
int lttcomm_setsockopt_creds_unix_sock(int sock)
{
return 0;