summaryrefslogtreecommitdiff
path: root/src/fcntl.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2014-08-25 14:01:28 -0700
committerCarl Lerche <me@carllerche.com>2014-08-25 14:01:28 -0700
commitcfeed110492cc53da67f99e51f9268567556c428 (patch)
treedb4f90dc30a6f3f374078ab86dfead3c99838da9 /src/fcntl.rs
parent74d49ab9a1d03787544b4a9d8d7e1b2828577bff (diff)
downloadnix-cfeed110492cc53da67f99e51f9268567556c428.zip
Tweaks + fix accept4
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,