Skip to content

Commit 91639b6

Browse files
committed
Use cfg_attr like other items
1 parent eff3d81 commit 91639b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unix/bsd/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,10 @@ extern {
594594
pub fn recvmsg(fd: ::c_int, msg: *mut ::msghdr, flags: ::c_int)
595595
-> ::ssize_t;
596596

597-
#[cfg(not(target_os = "macos"))]
597+
#[cfg_attr(not(target_os = "macos"))]
598598
pub fn sendmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
599599
flags: ::c_int) -> ::c_int;
600-
#[cfg(not(target_os = "macos"))]
600+
#[cfg_attr(not(target_os = "macos"))]
601601
pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
602602
flags: ::c_int, timeout: *mut ::timespec) -> ::c_int;
603603

0 commit comments

Comments
 (0)