Skip to content

Commit 6866c01

Browse files
committed
Fix SocketFlags usage on AIX
AIX has neither SOCK_NONBLOCK nor SOCK_CLOEXEC flags.
1 parent 0e4e747 commit 6866c01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,6 +2100,7 @@ fn connect(
21002100
)))]
21012101
let socket = {
21022102
#[cfg(not(any(
2103+
target_os = "aix",
21032104
target_os = "macos",
21042105
target_os = "ios",
21052106
target_os = "tvos",
@@ -2109,6 +2110,7 @@ fn connect(
21092110
)))]
21102111
let flags = rn::SocketFlags::CLOEXEC;
21112112
#[cfg(any(
2113+
target_os = "aix",
21122114
target_os = "macos",
21132115
target_os = "ios",
21142116
target_os = "tvos",

0 commit comments

Comments
 (0)