Skip to content

Commit 463511b

Browse files
committed
Expose MSG_CMSG_CLOEXEC on *BSD
1 parent 56e9cc0 commit 463511b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1010
([#825](https://github.com/nix-rust/nix/pull/825))
1111
- Exposed `termios::cfmakesane` on FreeBSD.
1212
([#825](https://github.com/nix-rust/nix/pull/825))
13+
- Exposed `MSG_CMSG_CLOEXEC` on *BSD.
14+
([#825](https://github.com/nix-rust/nix/pull/825))
1315

1416
### Changed
1517

src/sys/socket/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,12 @@ libc_bitflags!{
163163
/// [open(2)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html).
164164
///
165165
/// Only used in [`recvmsg`](fn.recvmsg.html) function.
166-
#[cfg(any(target_os = "linux", target_os = "android"))]
166+
#[cfg(any(target_os = "android",
167+
target_os = "dragonfly",
168+
target_os = "freebsd",
169+
target_os = "linux",
170+
target_os = "netbsd",
171+
target_os = "openbsd"))]
167172
MSG_CMSG_CLOEXEC;
168173
}
169174
}

0 commit comments

Comments
 (0)