Skip to content

Commit

Permalink
Add Errno::EOPNOTSUPP to FreeBSD, where it is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Jun 13, 2021
1 parent df54cd8 commit 23d5ad0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
(#[1395](https://github.com/nix-rust/nix/pull/1395))
- Fix spurious errors using `sendmmsg` with multiple cmsgs
(#[1414](https://github.com/nix-rust/nix/pull/1414))
- Added `Errno::EOPNOTSUPP` to FreeBSD, where it was missing.
(#[1451](https://github.com/nix-rust/nix/pull/1451))

### Removed

Expand Down
1 change: 1 addition & 0 deletions src/errno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,7 @@ mod consts {
pub const ELAST: Errno = Errno::EOWNERDEAD;
pub const EWOULDBLOCK: Errno = Errno::EAGAIN;
pub const EDEADLOCK: Errno = Errno::EDEADLK;
pub const EOPNOTSUPP: Errno = Errno::ENOTSUP;
}

pub fn from_i32(e: i32) -> Errno {
Expand Down

0 comments on commit 23d5ad0

Please sign in to comment.