]> git.proxmox.com Git - mirror_qemu.git/commit
accel/kvm: avoid using predefined PAGE_SIZE
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Mon, 18 Jan 2021 06:38:06 +0000 (14:38 +0800)
committerThomas Huth <thuth@redhat.com>
Wed, 20 Jan 2021 09:46:54 +0000 (10:46 +0100)
commiteb8b1a797a86d72b0eddc6cfd5cc018849417e7a
tree6490fcdc96ca18a6adb088fb2ad6333543e549cc
parentd2c4f3841d1cba17c99f76812ffcb75a6c402202
accel/kvm: avoid using predefined PAGE_SIZE

As per POSIX specification of limits.h [1], OS libc may define
PAGE_SIZE in limits.h.

PAGE_SIZE is used in included kernel uapi headers.

To prevent collosion of definition, we discard PAGE_SIZE from
defined by libc and take QEMU's variable.

[1]: https://pubs.opengroup.org/onlinepubs/7908799/xsh/limits.h.html

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Message-Id: <20210118063808.12471-8-jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
accel/kvm/kvm-all.c