]> git.proxmox.com Git - mirror_spl.git/commitdiff
Avoid PAGESIZE redefinition
authorstf <s@ctrlc.hu>
Sat, 16 Aug 2014 22:16:08 +0000 (00:16 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 18 Aug 2014 15:55:41 +0000 (08:55 -0700)
Add #ifndef PAGESIZE to avoid redefinition warning on platforms
where this value is already provided.

Signed-off-by: stf <s@ctrlc.hu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #382

include/sys/sysmacros.h

index 565fc5600043c7264de121425d3667d3970b9865..33e92b6d840ec725a85bbdd854a1fe663973eb8e 100644 (file)
 #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)