X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fsocket.h;h=5a6802aacd77720f72e7de93dfd4aeac61161b25;hp=6a490bebbdaf5cef5bc24a8a8f16dc07ab025810;hb=11a2fd460f033afa2d5f41a70eb1fd3a84fcf89d;hpb=a2773369683dfe5295e5e9304f075353ba8a9bff 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;