Skip to content

Commit

Permalink
make unix imports unix only
Browse files Browse the repository at this point in the history
  • Loading branch information
zolutal committed Jan 13, 2024
1 parent 4ce7081 commit f9c0034
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/python/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ use pyo3::exceptions::PyValueError;
use pyo3::wrap_pyfunction;
use pyo3::prelude::*;

#[cfg(target_family = "unix")]
use std::os::unix::io::FromRawFd;
use libc::dup;

use std::collections::HashMap;
use std::path::PathBuf;
use std::sync::Arc;
use std::fs::File;
use memmap2::Mmap;
use libc::dup;

mod pytypes;
use pytypes::NamedTypes;
Expand Down

0 comments on commit f9c0034

Please sign in to comment.