wmmemload: Fix version check for kernel 3.0.
Based on the patch from Debian by Guillermo Indalecio Fernandez <guillermobox@gmail.com>: http://sources.debian.net/src/wmmemload/0.1.6-8/debian/patches/04-kernel30.patch/
This commit is contained in:
parent
183f35d886
commit
32ce80ea45
1 changed files with 3 additions and 2 deletions
|
@ -49,8 +49,9 @@ void mem_init(void)
|
||||||
|
|
||||||
/* new format ? (kernel >= 2.5.1pre?) */
|
/* new format ? (kernel >= 2.5.1pre?) */
|
||||||
/* see linux/fs/proc/proc_misc.c */
|
/* see linux/fs/proc/proc_misc.c */
|
||||||
if (version >= 2 && patchlevel >= 5 && sublevel >= 1 || \
|
if (version == 2 && patchlevel >= 5 && sublevel >= 1 || \
|
||||||
version >= 2 && patchlevel >= 6 && sublevel >= 0)
|
version == 2 && patchlevel >= 6 && sublevel >= 0 || \
|
||||||
|
version >2 )
|
||||||
isnewformat = 1;
|
isnewformat = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue