Skip to content

Commit

Permalink
Add missing #[cfg(unix)] directive
Browse files Browse the repository at this point in the history
  • Loading branch information
pkolaczk committed Nov 1, 2021
1 parent 64ea278 commit dc639d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ rm -f $PKG_DIR/*
cargo deb
mv target/debian/*.deb $PKG_DIR

fakeroot alien --to-rpm -c $PKG_DIR/*.deb
mv *.rpm $PKG_DIR
#fakeroot alien --to-rpm -c $PKG_DIR/*.deb
#mv *.rpm $PKG_DIR
fakeroot alien --to-tgz -c $PKG_DIR/*.deb
mv *.tgz $PKG_DIR

Expand Down
1 change: 1 addition & 0 deletions src/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ impl FileLock {

/// Creates a libc::flock initialized to zeros.
/// Should be safe, because flock contains primitive fields only, no references.
#[cfg(unix)]
fn new_flock() -> libc::flock {
unsafe { std::mem::zeroed() }
}
Expand Down

0 comments on commit dc639d2

Please sign in to comment.