Skip to content
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

Unbreak the Windows build #12

Closed
sylvestre opened this issue Feb 17, 2024 · 1 comment
Closed

Unbreak the Windows build #12

sylvestre opened this issue Feb 17, 2024 · 1 comment
Labels
good first issue Good for newcomers

Comments

@sylvestre
Copy link
Contributor

fails with:


error[E0432]: unresolved import `libc::PRIO_PROCESS`
 --> src\uu\renice\src/renice.rs:6:5
  |
6 | use libc::PRIO_PROCESS;
  |     ^^^^^^^^^^^^^^^^^^ no `PRIO_PROCESS` in the root

error[E0425]: cannot find function `setpriority` in crate `libc`
  --> src\uu\renice\src/renice.rs:31:23
   |
31 |     if unsafe { libc::setpriority(PRIO_PROCESS, pid.try_into().unwrap(), nice_value) } == -1 {
   |                       ^^^^^^^^^^^ not found in `libc`
@sylvestre sylvestre added the good first issue Good for newcomers label Feb 17, 2024
@cakebaker
Copy link
Contributor

"Fixed" in #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants