X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fsocket.h;h=5a6802aacd77720f72e7de93dfd4aeac61161b25;hp=6a490bebbdaf5cef5bc24a8a8f16dc07ab025810;hb=790c779e5d45e5ea024c221e60d3dd2277a7b7b9;hpb=28105b321a53add73ff2a1b7cffe2cb7c951edc7 diff --git a/src/common/compat/socket.h b/src/common/compat/socket.h index 6a490bebb..5a6802aac 100644 --- a/src/common/compat/socket.h +++ b/src/common/compat/socket.h @@ -74,8 +74,9 @@ typedef struct lttng_sock_cred lttng_sock_cred; #include -static int -getpeereid(int s, uid_t *euid, gid_t *gid) + +static inline +int getpeereid(int s, uid_t *euid, gid_t *gid) { int ret = 0; ucred_t *ucred = NULL;