library: use LINUX_VERSION macro in the MemAvailable fallback

This commit is contained in:
Jaromir Capik 2014-07-22 18:18:51 +02:00
parent cbba7ad7a7
commit 784c6eda1c

View File

@ -698,7 +698,7 @@ nextline:
/* zero? might need fallback for 2.6.27 <= kernel <? 3.14 */ /* zero? might need fallback for 2.6.27 <= kernel <? 3.14 */
if (!kb_main_available) { if (!kb_main_available) {
if (linux_version_code < 20627) if (linux_version_code < LINUX_VERSION(2, 6, 27))
kb_main_available = kb_main_free; kb_main_available = kb_main_free;
else { else {
vminfo(); vminfo();