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

fixed redefinition of PAGESIZE with musl libc #382

Closed
wants to merge 1 commit into from

Conversation

stef
Copy link

@stef stef commented Aug 16, 2014

compatibility with musl which does define PAGESIZE to PAGE_SIZE already.

@behlendorf
Copy link
Contributor

Looks good. I'll pull it in on Monday.

@behlendorf
Copy link
Contributor

@stef This header should never be compiled in user space against libc. It's just going to get built against the kernel headers. That said, wrapping this sort of thing in a #ifndef is good form so I'm OK with merging this.

@behlendorf behlendorf added this to the 0.6.4 milestone Aug 18, 2014
@behlendorf behlendorf added Bug and removed Bug labels Aug 18, 2014
ryao pushed a commit to ryao/spl that referenced this pull request Nov 29, 2014
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 openzfs#382
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants