diff options
Diffstat (limited to 'include/sys/cred.h')
-rw-r--r-- | include/sys/cred.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sys/cred.h b/include/sys/cred.h index 58f7aafda..2ad7115e0 100644 --- a/include/sys/cred.h +++ b/include/sys/cred.h @@ -34,6 +34,11 @@ typedef struct cred cred_t; #define kcred ((cred_t *)(init_task.cred)) #define CRED() ((cred_t *)current_cred()) +/* Linux 4.9 API change, GROUP_AT was removed */ +#ifndef GROUP_AT +#define GROUP_AT(gi, i) ((gi)->gid[i]) +#endif + #ifdef HAVE_KUIDGID_T #define KUID_TO_SUID(x) (__kuid_val(x)) |