mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 05:05:12 +02:00
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.
This commit is contained in:

committed by
Jan Engelhardt

parent
431062c6ec
commit
4c21811919
@@ -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;
|
||||
|
Reference in New Issue
Block a user