From 449e75d76816a0074fef8f8962f5f91a51dd007e Mon Sep 17 00:00:00 2001 From: Alec Salazar Date: Tue, 5 Aug 2014 10:53:16 -0400 Subject: [PATCH] Avoid PAGESIZE redefinition Add #ifndef PAGESIZE to avoid redefinition warning on platforms where this value is already provided. Signed-off-by: Alec Salazar Signed-off-by: Brian Behlendorf Closes #2588 --- lib/libspl/include/sys/param.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libspl/include/sys/param.h b/lib/libspl/include/sys/param.h index 4090cefe8..9f362dd8b 100644 --- a/lib/libspl/include/sys/param.h +++ b/lib/libspl/include/sys/param.h @@ -57,6 +57,8 @@ #define MAXUID UINT32_MAX /* max user id */ #define MAXPROJID MAXUID /* max project id */ +#ifndef PAGESIZE #define PAGESIZE (sysconf(_SC_PAGESIZE)) +#endif /* PAGESIZE */ #endif