From 23d5ad06021b746e32583c263a67376cde089ef0 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 12 Jun 2021 18:03:37 -0600 Subject: [PATCH] Add Errno::EOPNOTSUPP to FreeBSD, where it is missing --- CHANGELOG.md | 2 ++ src/errno.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 375c7600fb..dc25e4ec5d 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. + (#[1451](https://github.com/nix-rust/nix/pull/1451)) ### Removed diff --git a/src/errno.rs b/src/errno.rs index 2514dab376..5b0d61f848 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 {