summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-06-12 18:03:37 -0600
committerAlan Somers <asomers@gmail.com>2021-06-12 18:06:23 -0600
commit6f15bf3f0a3692e9e1e29cd6108d3ee655b370a8 (patch)
treeb25e2b034c1e6e064ee119f87a8a859595c55a9e
parent4da2e02482a63daf286b3658fbf8ec15906c9c72 (diff)
downloadnix-6f15bf3f0a3692e9e1e29cd6108d3ee655b370a8.zip
Add Errno::EOPNOTSUPP to FreeBSD, where it is missing
-rw-r--r--CHANGELOG.md2
-rw-r--r--src/errno.rs1
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 143d85de..e51d6dc3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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.
+ (#[1452](https://github.com/nix-rust/nix/pull/1452))
### Removed
diff --git a/src/errno.rs b/src/errno.rs
index 2514dab3..5b0d61f8 100644
--- a/src/errno.rs
+++ b/src/errno.rs
@@ -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 {