summaryrefslogtreecommitdiff
path: root/osdep.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2012-10-24 14:12:15 -0200
committerAnthony Liguori <aliguori@us.ibm.com>2012-10-24 15:01:45 -0500
commit8473f377393219390ea6f2d8d450a2b054bb823e (patch)
tree5bc43eca119c9059eb744a639064e555a0e4421a /osdep.h
parentc6b8141b84e1b80eff1f04e2a5feb38decae65d8 (diff)
win32: fix broken build due to missing QEMU_MADV_HUGEPAGE
Commit ad0b5321f1f797274603ebbe20108b0750baee94 forgot to add QEMU_MADV_HUGEPAGE macros for when CONFIG_MADVISE is not defined. This broke the build for Windows. Fix it. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'osdep.h')
-rw-r--r--osdep.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep.h b/osdep.h
index c5fd3d91ff..585e2c1787 100644
--- a/osdep.h
+++ b/osdep.h
@@ -121,6 +121,7 @@ void qemu_vfree(void *ptr);
#define QEMU_MADV_DONTFORK QEMU_MADV_INVALID
#define QEMU_MADV_MERGEABLE QEMU_MADV_INVALID
#define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID
+#define QEMU_MADV_HUGEPAGE QEMU_MADV_INVALID
#else /* no-op */
@@ -129,6 +130,7 @@ void qemu_vfree(void *ptr);
#define QEMU_MADV_DONTFORK QEMU_MADV_INVALID
#define QEMU_MADV_MERGEABLE QEMU_MADV_INVALID
#define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID
+#define QEMU_MADV_HUGEPAGE QEMU_MADV_INVALID
#endif