Skip to content

Commit

Permalink
flock needs repr(C)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahicks92 committed Dec 16, 2016
1 parent f22a22b commit ff59474
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/librustc_data_structures/flock.rs
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit ff59474

Please sign in to comment.