From 4c2181191979c7ac33c5e967a12faef570a39232 Mon Sep 17 00:00:00 2001 From: Adam Butcher Date: Wed, 3 Sep 2014 13:23:29 +0000 Subject: [PATCH] src: work with typeof Although not officially supported, we have found that the xtables-addons modules we are interested in work fine on 3.0.4 with a slight non-invasive mod to compat_xtables.h. --- extensions/compat_xtables.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/compat_xtables.h b/extensions/compat_xtables.h index cb5e61e..9009eeb 100644 --- a/extensions/compat_xtables.h +++ b/extensions/compat_xtables.h @@ -54,8 +54,8 @@ static inline struct inode *file_inode(struct file *f) #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) -static inline void -proc_set_user(struct proc_dir_entry *de, kuid_t uid, kgid_t gid) +static inline void proc_set_user(struct proc_dir_entry *de, + typeof(de->uid) uid, typeof(de->gid) gid) { de->uid = uid; de->gid = gid;