From 43b857fddb0aa0a2fef1e00c696a80056c6367a8 Mon Sep 17 00:00:00 2001 From: David Quigley Date: Tue, 31 Jan 2017 11:36:18 -0700 Subject: [PATCH] Add a PAGESHIFT definition Reviewed-by: Brian Behlendorf Signed-off-by: David Quigley Closes #598 --- include/sys/sysmacros.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index f6b1e28e8..a4a9f3e98 100644 --- a/include/sys/sysmacros.h +++ b/include/sys/sysmacros.h @@ -32,6 +32,7 @@ #include #include #include +#include #ifdef HAVE_SCHED_RT_HEADER #include @@ -111,6 +112,10 @@ #define PAGESIZE PAGE_SIZE #endif +#ifndef PAGESHIFT +#define PAGESHIFT PAGE_SHIFT +#endif + /* from Solaris sys/byteorder.h */ #define BSWAP_8(x) ((x) & 0xff) #define BSWAP_16(x) ((BSWAP_8(x) << 8) | BSWAP_8((x) >> 8))