Skip to content

Commit 6a3b460

Browse files
useraustinhartzheim
authored andcommitted
fix build problem #20
1 parent 6b955b6 commit 6a3b460

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/locks.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,14 @@ impl<'a> WriteLockStrategySealed<'a> for SingleWriter {
144144
}
145145
}
146146

147+
#[cfg(unix)]
147148
impl<'a> WriteLockStrategy<'a> for SingleWriter {}
148149

149150
/// A simple guard which does not release the lock upon being dropped.
150151
#[cfg(unix)]
151152
pub struct SingleWriterGuard<'a>(&'a mut MmapMut);
152153

154+
#[cfg(unix)]
153155
impl<'a> Deref for SingleWriterGuard<'a> {
154156
type Target = MmapMut;
155157

@@ -158,6 +160,7 @@ impl<'a> Deref for SingleWriterGuard<'a> {
158160
}
159161
}
160162

163+
#[cfg(unix)]
161164
impl<'a> DerefMut for SingleWriterGuard<'a> {
162165
fn deref_mut(&mut self) -> &mut Self::Target {
163166
&mut *self.0

0 commit comments

Comments
 (0)