Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Avoid PAGESIZE redefinition
Browse files Browse the repository at this point in the history
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
  • Loading branch information
stf authored and behlendorf committed Aug 18, 2014
1 parent ec18fe3 commit f9bde4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/sys/sysmacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,12 @@
#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)
Expand Down

0 comments on commit f9bde4f

Please sign in to comment.