Skip to content

Properly expose more constants on FreeBSD #2465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2021
Merged

Conversation

asomers
Copy link
Contributor

@asomers asomers commented Oct 17, 2021

The freebsd12 and freebsd13 modules should only be used for symbols that
change in those versions, not for newly added symbols. Mostly they
should be used for versioned ELF symbols. It does no harm to publish
ordinary constants in the base FreeBSD module even if they weren't
defined in the lowest supported version of FreeBSD, but it does make it
much easier for consumers to use them.

@rust-highfive
Copy link

r? @JohnTitor

(rust-highfive has picked a reviewer for you, use r? to override)

@JohnTitor
Copy link
Member

Makes sense, could you squash commits into one?

The freebsd12 and freebsd13 modules should only be used for symbols that
_change_ in those versions, not for newly added symbols.  Mostly they
should be used for versioned ELF symbols.  It does no harm to publish
ordinary constants in the base FreeBSD module even if they weren't
defined in the lowest supported version of FreeBSD, but it does make it
much easier for consumers to use them.
@asomers
Copy link
Contributor Author

asomers commented Oct 20, 2021

Squashed!

@JohnTitor
Copy link
Member

Thanks! @bors r+

@bors
Copy link
Contributor

bors commented Oct 20, 2021

📌 Commit 3418986 has been approved by JohnTitor

@bors
Copy link
Contributor

bors commented Oct 20, 2021

⌛ Testing commit 3418986 with merge f6084a7...

@bors
Copy link
Contributor

bors commented Oct 21, 2021

☀️ Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: JohnTitor
Pushing f6084a7 to master...

@bors bors merged commit f6084a7 into rust-lang:master Oct 21, 2021
bors added a commit that referenced this pull request Nov 7, 2021
FreeBSD: add eventfd (since 13)

This already exposes constants in the non-versioned code like #2465 so this should wait on #2465
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants