]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Avoid PAGESIZE redefinition
authorAlec Salazar <alec.j.salazar@gmail.com>
Tue, 5 Aug 2014 14:53:16 +0000 (10:53 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 13 Aug 2014 17:36:09 +0000 (10:36 -0700)
Add #ifndef PAGESIZE to avoid redefinition warning on platforms
where this value is already provided.

Signed-off-by: Alec Salazar <alec.j.salazar@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2588

lib/libspl/include/sys/param.h

index 4090cefe87593ea849b546101da8e7b603e91fb1..9f362dd8b5ffb8de7ae7a66dff02fde870299afe 100644 (file)
@@ -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