Skip to content

Commit a0f77c2

Browse files
authored
Merge pull request #229 from NordSecurity/lipt/fix_windows_build
Don't expose fd API in non-unix builds
2 parents d8768da + f47f772 commit a0f77c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drop-transfer/src/file/gather.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ impl<'a> GatherCtx<'a> {
3232
pub fn new(config: &'a DropConfig) -> Self {
3333
Self {
3434
config,
35+
#[cfg(unix)]
3536
fdresolv: None,
3637
files: Vec::new(),
3738
used_names: HashSet::new(),
3839
}
3940
}
4041

42+
#[cfg(unix)]
4143
pub fn with_fd_resover(&mut self, fdresolv: &'a super::FdResolver) -> &mut Self {
4244
self.fdresolv = Some(fdresolv);
4345
self

0 commit comments

Comments
 (0)