diff options
| author | Jiaxun Yang | 2021-01-18 07:38:06 +0100 |
|---|---|---|
| committer | Thomas Huth | 2021-01-20 10:46:54 +0100 |
| commit | eb8b1a797a86d72b0eddc6cfd5cc018849417e7a (patch) | |
| tree | 6490fcdc96ca18a6adb088fb2ad6333543e549cc /scripts/qapi/common.py | |
| parent | tests: Rename PAGE_SIZE definitions (diff) | |
| download | qemu-eb8b1a797a86d72b0eddc6cfd5cc018849417e7a.tar.gz qemu-eb8b1a797a86d72b0eddc6cfd5cc018849417e7a.tar.xz qemu-eb8b1a797a86d72b0eddc6cfd5cc018849417e7a.zip | |
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>
Diffstat (limited to 'scripts/qapi/common.py')
0 files changed, 0 insertions, 0 deletions
