diff options
author | Carl Lerche <me@carllerche.com> | 2014-08-25 14:01:28 -0700 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2014-08-25 14:01:28 -0700 |
commit | cfeed110492cc53da67f99e51f9268567556c428 (patch) | |
tree | db4f90dc30a6f3f374078ab86dfead3c99838da9 /src/fcntl.rs | |
parent | 74d49ab9a1d03787544b4a9d8d7e1b2828577bff (diff) | |
download | nix-cfeed110492cc53da67f99e51f9268567556c428.zip |
Tweaks + fix accept4
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r-- | src/fcntl.rs | 2 |
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, |