Avoid PAGESIZE redefinition
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
This commit is contained in:
parent
22a11a5b5a
commit
449e75d768
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue