From 6f15bf3f0a3692e9e1e29cd6108d3ee655b370a8 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 12 Jun 2021 18:03:37 -0600 Subject: 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 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 { -- cgit v1.2.3