From cfeed110492cc53da67f99e51f9268567556c428 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Mon, 25 Aug 2014 14:01:28 -0700 Subject: Tweaks + fix accept4 --- src/fcntl.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fcntl.rs') 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, -- cgit v1.2.3