diff options
| author | Austin Hicks <camlorn@camlorn.net> | 2016-12-16 15:50:14 -0500 |
|---|---|---|
| committer | Austin Hicks <camlorn@camlorn.net> | 2016-12-16 15:50:14 -0500 |
| commit | ff59474ed356d69d75447af79278bdd28db16710 (patch) | |
| tree | 35f0e0faec85051c9d8f61055674c16efdf74e30 | |
| parent | f22a22b28658dc55e69d1aeb978c384493fdb6ee (diff) | |
| download | rust-ff59474ed356d69d75447af79278bdd28db16710.tar.gz rust-ff59474ed356d69d75447af79278bdd28db16710.zip | |
flock needs repr(C)
| -rw-r--r-- | src/librustc_data_structures/flock.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustc_data_structures/flock.rs b/src/librustc_data_structures/flock.rs index 510c9ceef09..33d71ba8626 100644 --- a/src/librustc_data_structures/flock.rs +++ b/src/librustc_data_structures/flock.rs @@ -31,6 +31,7 @@ mod imp { mod os { use libc; + #[repr(C)] pub struct flock { pub l_type: libc::c_short, pub l_whence: libc::c_short, @@ -53,6 +54,7 @@ mod imp { mod os { use libc; + #[repr(C)] pub struct flock { pub l_start: libc::off_t, pub l_len: libc::off_t, @@ -76,6 +78,7 @@ mod imp { mod os { use libc; + #[repr(C)] pub struct flock { pub l_start: libc::off_t, pub l_len: libc::off_t, @@ -98,6 +101,7 @@ mod imp { mod os { use libc; + #[repr(C)] pub struct flock { pub l_type: libc::c_short, pub l_whence: libc::c_short, @@ -119,6 +123,7 @@ mod imp { mod os { use libc; + #[repr(C)] pub struct flock { pub l_start: libc::off_t, pub l_len: libc::off_t, @@ -141,6 +146,7 @@ mod imp { mod os { use libc; + #[repr(C)] pub struct flock { pub l_type: libc::c_short, pub l_whence: libc::c_short, |
