From: Michael Jeanson Date: Tue, 13 Oct 2020 23:06:09 +0000 (-0400) Subject: port: Add missing sock_cred macros on FreeBSD X-Git-Tag: v2.13.0-rc1~444 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=de559cf1823ecaf083c7c827c926b3aece32df71;p=lttng-tools.git port: Add missing sock_cred macros on FreeBSD Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau Change-Id: I71f51ef61bf659c758edba6fd27faeef56654acf --- diff --git a/src/common/compat/socket.h b/src/common/compat/socket.h index 1b9989369..3690ba679 100644 --- a/src/common/compat/socket.h +++ b/src/common/compat/socket.h @@ -121,6 +121,10 @@ struct lttng_sock_cred { typedef struct lttng_sock_cred lttng_sock_cred; +#define LTTNG_SOCK_SET_UID_CRED(c, u) LTTNG_REF(c)->uid = u +#define LTTNG_SOCK_SET_GID_CRED(c, g) LTTNG_REF(c)->gid = g +#define LTTNG_SOCK_SET_PID_CRED(c, p) + #define LTTNG_SOCK_GET_UID_CRED(c) LTTNG_REF(c)->uid #define LTTNG_SOCK_GET_GID_CRED(c) LTTNG_REF(c)->gid #define LTTNG_SOCK_GET_PID_CRED(c) -1