Skip to content

Commit f049edd

Browse files
committed
Fix BSD error
1 parent 8c4c3b7 commit f049edd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/sys/mman.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,13 @@ mod consts {
162162

163163
bitflags!{
164164
pub struct MsFlags: c_int {
165-
const MS_ASYNC = libc::MS_ASYNC, /* [MF|SIO] return immediately */
166-
const MS_INVALIDATE = libc::MS_INVALIDATE, /* [MF|SIO] invalidate all cached data */
165+
const MS_ASYNC = libc::MS_ASYNC; /* [MF|SIO] return immediately */
166+
const MS_INVALIDATE = libc::MS_INVALIDATE; /* [MF|SIO] invalidate all cached data */
167167
#[cfg(not(target_os = "dragonfly"))]
168-
const MS_KILLPAGES = 0x0004, /* invalidate pages, leave mapped */
168+
const MS_KILLPAGES = 0x0004; /* invalidate pages, leave mapped */
169169
#[cfg(not(target_os = "dragonfly"))]
170-
const MS_DEACTIVATE = 0x0004, /* deactivate pages, leave mapped */
171-
const MS_SYNC = libc::MS_SYNC, /* [MF|SIO] msync synchronously */
170+
const MS_DEACTIVATE = 0x0004; /* deactivate pages, leave mapped */
171+
const MS_SYNC = libc::MS_SYNC; /* [MF|SIO] msync synchronously */
172172
}
173173
}
174174

0 commit comments

Comments
 (0)