mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-06-15 18:05:49 +00:00
avoid redefining PAGE_SIZE
PAGE_SIZE may have been defined by the C libary (musl-libc does that). So avoid redefining it here unconditionally, instead only use our definition if none has been provided by the libc. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
This commit is contained in:
committed by
Will Deacon
parent
f9183c63e3
commit
4095fac878
@@ -11,6 +11,7 @@
|
||||
#include <time.h>
|
||||
#include <signal.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <limits.h>
|
||||
|
||||
#define SIGKVMEXIT (SIGRTMIN + 0)
|
||||
#define SIGKVMPAUSE (SIGRTMIN + 1)
|
||||
@@ -19,7 +20,9 @@
|
||||
#define HOME_DIR getenv("HOME")
|
||||
#define KVM_BINARY_NAME "lkvm"
|
||||
|
||||
#ifndef PAGE_SIZE
|
||||
#define PAGE_SIZE (sysconf(_SC_PAGE_SIZE))
|
||||
#endif
|
||||
|
||||
#define DEFINE_KVM_EXT(ext) \
|
||||
.name = #ext, \
|
||||
|
||||
Reference in New Issue
Block a user