git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Linux 4.9: deal with demise of GROUP_AT
[openafs.git]
/
src
/
afs
/
LINUX
/
osi_machdep.h
diff --git
a/src/afs/LINUX/osi_machdep.h
b/src/afs/LINUX/osi_machdep.h
index
82aed00
..
7b457ca
100644
(file)
--- a/
src/afs/LINUX/osi_machdep.h
+++ b/
src/afs/LINUX/osi_machdep.h
@@
-141,6
+141,11
@@
static inline long copyinstr(char *from, char *to, int count, int *length) {
#define NGROUPS NGROUPS_SMALL
#endif
+#ifdef STRUCT_GROUP_INFO_HAS_GID
+/* compat macro for Linux 4.9 */
+#define GROUP_AT(gi,x) ((gi)->gid[x])
+#endif
+
typedef struct task_struct afs_proc_t;
#ifdef HAVE_LINUX_KUID_T