From f9bde4f74be5e5030571415d9c869400dff3eda6 Mon Sep 17 00:00:00 2001 From: stf Date: Sun, 17 Aug 2014 00:16:08 +0200 Subject: [PATCH] Avoid PAGESIZE redefinition Add #ifndef PAGESIZE to avoid redefinition warning on platforms where this value is already provided. Signed-off-by: stf Signed-off-by: Brian Behlendorf Closes #382 --- include/sys/sysmacros.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index 565fc5600043..33e92b6d840e 100644 --- a/include/sys/sysmacros.h +++ b/include/sys/sysmacros.h @@ -102,9 +102,12 @@ #define PRIO_TO_NICE(prio) ((prio) - MAX_RT_PRIO - 20) #endif -/* Missing macros +/* + * Missing macros */ +#ifndef PAGESIZE #define PAGESIZE PAGE_SIZE +#endif /* from Solaris sys/byteorder.h */ #define BSWAP_8(x) ((x) & 0xff)