Skip to content

Fix FreeBSD getpriority difference - #166437

Open
jieyouxu wants to merge 1 commit into
rust-lang:mainfrom
jieyouxu:jieyouxu/fix/freebsd-id-t
Open

jieyouxu wants to merge 1 commit into
rust-lang:mainfrom
jieyouxu:jieyouxu/fix/freebsd-id-t

Conversation

@jieyouxu

@jieyouxu jieyouxu commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Fixes #166425.

Since FreeBSD/DragonFly (and some BSD-likes) seemingly use int rather than POSIX's id_t for their getpriority's who parameter. See https://cgit.freebsd.org/src/tree/sys/sys/resource.h#n189

__BEGIN_DECLS
/* XXX 2nd arg to [gs]etpriority() should be an id_t */
int	getpriority(int, int);

See also:

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Nov 24, 2026
@rustbot

rustbot commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

r? @clubby789

rustbot has assigned @clubby789.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: bootstrap
  • bootstrap expanded to 6 candidates
  • Random selection from Mark-Simulacrum, clubby789

@jieyouxu jieyouxu added O-freebsd Operating system: FreeBSD O-dragonfly Operating system: DragonFly BSD labels Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-dragonfly Operating system: DragonFly BSD O-freebsd Operating system: FreeBSD S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nighly build failure on FreeBSD

3 participants