]> git.proxmox.com Git - qemu.git/commitdiff
win32: fix broken build due to missing QEMU_MADV_HUGEPAGE
authorLuiz Capitulino <lcapitulino@redhat.com>
Wed, 24 Oct 2012 16:12:15 +0000 (14:12 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 24 Oct 2012 20:01:45 +0000 (15:01 -0500)
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>
osdep.h

diff --git a/osdep.h b/osdep.h
index c5fd3d91ff79c4f0562085183d550f998993e945..585e2c17877b7bd085d6b8bc976431f7864885dd 100644 (file)
--- 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