[Mesa-dev] [PATCH] vma/tests: Fix compilation if limits.h defines PAGE_SIZE
Jon Turney
jon.turney at dronecode.org.uk
Thu Jul 5 14:52:01 UTC 2018
per POSIX, limits.h may define PAGE_SIZE when the value is not indeterminate
Cc: Scott D Phillips <scott.d.phillips at intel.com>
Signed-off-by: Jon Turney <jon.turney at dronecode.org.uk>
---
src/util/tests/vma/vma_random_test.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/util/tests/vma/vma_random_test.cpp b/src/util/tests/vma/vma_random_test.cpp
index de887fead3..c08f3751a4 100644
--- a/src/util/tests/vma/vma_random_test.cpp
+++ b/src/util/tests/vma/vma_random_test.cpp
@@ -40,6 +40,7 @@
namespace {
+#undef PAGE_SIZE
static const uint64_t PAGE_SIZE = 4096;
struct allocation {
--
2.17.0
More information about the mesa-dev
mailing list