blob: f806ccdebdb70e928148b6a897c9c7812d1f1453 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
diff -uprNb a/vmmon-only/linux/hostif.c b/vmmon-only/linux/hostif.c
--- a/vmmon-only/linux/hostif.c 2016-08-13 16:54:18.935207507 +0300
+++ b/vmmon-only/linux/hostif.c 2016-08-13 16:53:52.981424256 +0300
@@ -140,6 +140,10 @@ static DECLARE_TASKLET(timerTasklet, Hos
*/
#define LOCKED_PAGE_SLACK 10000
+#if LINUX_VERSION_CODE > KERNEL_VERSION(4, 7, 99)
+#define NR_ANON_PAGES NR_ANON_MAPPED
+#endif
+
static struct {
Atomic_uint64 uptimeBase;
VersionedAtomic version;
|