]> git.proxmox.com Git - mirror_spl.git/commitdiff
Add a PAGESHIFT definition
authorDavid Quigley <dpquigl@users.noreply.github.com>
Tue, 31 Jan 2017 18:36:18 +0000 (11:36 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 31 Jan 2017 18:36:18 +0000 (10:36 -0800)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: David Quigley <david.quigley@intel.com>
Closes #598

include/sys/sysmacros.h

index f6b1e28e8dc84e05b7b983d29a22dbf5b3b7153a..a4a9f3e98b2394915957b7a59d2c341f0a81ad4b 100644 (file)
@@ -32,6 +32,7 @@
 #include <sys/varargs.h>
 #include <sys/zone.h>
 #include <sys/signal.h>
+#include <asm/page.h>
 
 #ifdef HAVE_SCHED_RT_HEADER
 #include <linux/sched/rt.h>
 #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))