Skip to content

Commit 6a0be55

Browse files
committed
Define EWOULDBLOCK as an alias of EAGAIN for AIX.
1 parent e1e630f commit 6a0be55

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

changelog/2692.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Define errno EWOULDBLOCK as an alias of EAGAIN to match the AIX libc definition.

src/errno.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3247,6 +3247,10 @@ mod consts {
32473247
EOPNOTSUPP = libc::EOPNOTSUPP,
32483248
}
32493249

3250+
impl Errno {
3251+
pub const EWOULDBLOCK: Errno = Errno::EAGAIN;
3252+
}
3253+
32503254
#[deprecated(
32513255
since = "0.28.0",
32523256
note = "please use `Errno::from_raw()` instead"

0 commit comments

Comments
 (0)