Skip to content

Commit 4a042fe

Browse files
committed
Expose MSG_CMSG_CLOEXEC on *BSD
1 parent 3d93034 commit 4a042fe

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
7272
([#825](https://github.com/nix-rust/nix/pull/825))
7373
- Exposed `termios::cfmakesane` on FreeBSD.
7474
([#825](https://github.com/nix-rust/nix/pull/825))
75+
- Exposed `MSG_CMSG_CLOEXEC` on *BSD.
76+
([#825](https://github.com/nix-rust/nix/pull/825))
77+
- Fixed ioctls that write integers directly on FreeBSD and DragonFly.
78+
([#825](https://github.com/nix-rust/nix/pull/825))
7579

7680
### Changed
7781
- Exposed the `mqueue` module for all supported operating systems.

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)