diff --git a/changelog/2692.fixed.md b/changelog/2692.fixed.md new file mode 100644 index 0000000000..3c44361ccf --- /dev/null +++ b/changelog/2692.fixed.md @@ -0,0 +1 @@ +Define errno EWOULDBLOCK as an alias of EAGAIN to match the AIX libc definition. diff --git a/src/errno.rs b/src/errno.rs index 497e33dbbf..e34b111c60 100644 --- a/src/errno.rs +++ b/src/errno.rs @@ -3247,6 +3247,10 @@ mod consts { EOPNOTSUPP = libc::EOPNOTSUPP, } + impl Errno { + pub const EWOULDBLOCK: Errno = Errno::EAGAIN; + } + #[deprecated( since = "0.28.0", note = "please use `Errno::from_raw()` instead"