Skip to content

Commit 0554c95

Browse files
committed
Fix compilation on FreeBSD
1 parent 7f338a9 commit 0554c95

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/mnt/fuse_pure.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,14 @@ fn receive_fusermount_message(socket: &UnixStream) -> Result<File, Error> {
173173
message.msg_controllen = cmsg_buffer.len() as u32;
174174
message.msg_flags = 0;
175175
}
176-
#[cfg(target_os = "macos")]
176+
#[cfg(any(
177+
target_os = "macos",
178+
target_os = "freebsd",
179+
target_os = "dragonfly",
180+
target_os = "openbsd",
181+
target_os = "bitrig",
182+
target_os = "netbsd"
183+
))]
177184
{
178185
message = libc::msghdr {
179186
msg_name: ptr::null_mut(),

0 commit comments

Comments
 (0)