summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2018-01-05 01:11:11 +0300
committerGreg V <greg@unrelenting.technology>2018-02-12 12:52:10 +0300
commit647bac767036e68c8cc0a69a25547e6ee50994a0 (patch)
tree97b8f1043fec6a3abcee16766cffec702b0eba72 /src
parentd1f49bf38f3aad0171db306a1e23884b3102a539 (diff)
downloadnix-647bac767036e68c8cc0a69a25547e6ee50994a0.zip
Expose MSG_CMSG_CLOEXEC on *BSD
Diffstat (limited to 'src')
-rw-r--r--src/sys/socket/mod.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs
index beef3db8..af66bc47 100644
--- a/src/sys/socket/mod.rs
+++ b/src/sys/socket/mod.rs
@@ -163,7 +163,12 @@ libc_bitflags!{
/// [open(2)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html).
///
/// Only used in [`recvmsg`](fn.recvmsg.html) function.
- #[cfg(any(target_os = "linux", target_os = "android"))]
+ #[cfg(any(target_os = "android",
+ target_os = "dragonfly",
+ target_os = "freebsd",
+ target_os = "linux",
+ target_os = "netbsd",
+ target_os = "openbsd"))]
MSG_CMSG_CLOEXEC;
}
}