summaryrefslogtreecommitdiff
path: root/src/fcntl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r--src/fcntl.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs
index 9f3c28db..902ebe64 100644
--- a/src/fcntl.rs
+++ b/src/fcntl.rs
@@ -16,6 +16,7 @@ mod ffi {
mod os {
use libc::{c_int, c_short, off_t, pid_t};
+ #[repr(C)]
pub struct flock {
pub l_type: c_short,
pub l_whence: c_short,
@@ -43,6 +44,7 @@ mod ffi {
mod os {
use libc::{c_int, c_short, off_t, pid_t};
+ #[repr(C)]
pub struct flock {
pub l_start: off_t,
pub l_len: off_t,