summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Salazar <[email protected]>2014-08-05 10:53:16 -0400
committerBrian Behlendorf <[email protected]>2014-08-13 10:36:09 -0700
commit449e75d76816a0074fef8f8962f5f91a51dd007e (patch)
treeb44bc18cc96a498332317770a0b64b2f3b5f3b9c
parent22a11a5b5abc6b82972f8c6fa1d9b6efab3a4ab5 (diff)
Avoid PAGESIZE redefinition
Add #ifndef PAGESIZE to avoid redefinition warning on platforms where this value is already provided. Signed-off-by: Alec Salazar <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2588
-rw-r--r--lib/libspl/include/sys/param.h2
1 files changed, 2 insertions, 0 deletions
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