From: stf Date: Sat, 16 Aug 2014 22:16:08 +0000 (+0200) Subject: Avoid PAGESIZE redefinition X-Git-Tag: zfs-0.8.0-rc1~152^2~213 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9bde4f74be5e5030571415d9c869400dff3eda6;p=zfs 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 --- diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index 565fc5600..33e92b6d8 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)