Skip to content

Commit

Permalink
Merge pull request #3077 from jam1garner/compilation-32bit
Browse files Browse the repository at this point in the history
Fix compilation on unix platforms with i32 c_long
  • Loading branch information
youknowone committed Sep 18, 2021
2 parents 27e953f + 39d3e32 commit 2d7a66b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/src/stdlib/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,7 @@ mod _os {
path: PathOrFd,
ConfName(name): ConfName,
vm: &VirtualMachine,
) -> PyResult<Option<i64>> {
) -> PyResult<Option<libc::c_long>> {
use nix::errno::{self, Errno};

Errno::clear();
Expand All @@ -1938,7 +1938,7 @@ mod _os {

#[cfg(unix)]
#[pyfunction]
fn fpathconf(fd: i32, name: ConfName, vm: &VirtualMachine) -> PyResult<Option<i64>> {
fn fpathconf(fd: i32, name: ConfName, vm: &VirtualMachine) -> PyResult<Option<libc::c_long>> {
pathconf(PathOrFd::Fd(fd), name, vm)
}

Expand Down

0 comments on commit 2d7a66b

Please sign in to comment.