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:
Doug Torrance 2014-10-04 00:53:17 -05:00 committed by Carlos R. Mafra
parent 183f35d886
commit 32ce80ea45

View file

@ -49,8 +49,9 @@ void mem_init(void)
/* new format ? (kernel >= 2.5.1pre?) */
/* see linux/fs/proc/proc_misc.c */
if (version >= 2 && patchlevel >= 5 && sublevel >= 1 || \
version >= 2 && patchlevel >= 6 && sublevel >= 0)
if (version == 2 && patchlevel >= 5 && sublevel >= 1 || \
version == 2 && patchlevel >= 6 && sublevel >= 0 || \
version >2 )
isnewformat = 1;
}