Skip to content

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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
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.