Skip to content

Commit

Permalink
Fix SocketFlags usage on AIX (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnelises authored Mar 6, 2024
1 parent 0e4e747 commit 316256a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2100,6 +2100,7 @@ fn connect(
)))]
let socket = {
#[cfg(not(any(
target_os = "aix",
target_os = "macos",
target_os = "ios",
target_os = "tvos",
Expand All @@ -2109,6 +2110,7 @@ fn connect(
)))]
let flags = rn::SocketFlags::CLOEXEC;
#[cfg(any(
target_os = "aix",
target_os = "macos",
target_os = "ios",
target_os = "tvos",
Expand All @@ -2123,6 +2125,7 @@ fn connect(

// Set cloexec if necessary.
#[cfg(any(
target_os = "aix",
target_os = "macos",
target_os = "ios",
target_os = "tvos",
Expand Down

0 comments on commit 316256a

Please sign in to comment.