diff options
Diffstat (limited to 'plugin/auth_socket/auth_socket.c')
-rw-r--r-- | plugin/auth_socket/auth_socket.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/auth_socket/auth_socket.c b/plugin/auth_socket/auth_socket.c index b10679a5cc2..c20defed872 100644 --- a/plugin/auth_socket/auth_socket.c +++ b/plugin/auth_socket/auth_socket.c @@ -50,6 +50,12 @@ #elif defined HAVE_GETPEERUCRED #include <ucred.h> +#elif defined HAVE_PEERCRED_STRUCT +#define level SOL_SOCKET +#define SO_PEERCRED SO_PEERID +#define uid euid +#define ucred peercred_struct + #else #error impossible #endif |