Skip to content

Commit ff59474

Browse files
committed
flock needs repr(C)
1 parent f22a22b commit ff59474

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/librustc_data_structures/flock.rs

+6
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ mod imp {
3131
mod os {
3232
use libc;
3333

34+
#[repr(C)]
3435
pub struct flock {
3536
pub l_type: libc::c_short,
3637
pub l_whence: libc::c_short,
@@ -53,6 +54,7 @@ mod imp {
5354
mod os {
5455
use libc;
5556

57+
#[repr(C)]
5658
pub struct flock {
5759
pub l_start: libc::off_t,
5860
pub l_len: libc::off_t,
@@ -76,6 +78,7 @@ mod imp {
7678
mod os {
7779
use libc;
7880

81+
#[repr(C)]
7982
pub struct flock {
8083
pub l_start: libc::off_t,
8184
pub l_len: libc::off_t,
@@ -98,6 +101,7 @@ mod imp {
98101
mod os {
99102
use libc;
100103

104+
#[repr(C)]
101105
pub struct flock {
102106
pub l_type: libc::c_short,
103107
pub l_whence: libc::c_short,
@@ -119,6 +123,7 @@ mod imp {
119123
mod os {
120124
use libc;
121125

126+
#[repr(C)]
122127
pub struct flock {
123128
pub l_start: libc::off_t,
124129
pub l_len: libc::off_t,
@@ -141,6 +146,7 @@ mod imp {
141146
mod os {
142147
use libc;
143148

149+
#[repr(C)]
144150
pub struct flock {
145151
pub l_type: libc::c_short,
146152
pub l_whence: libc::c_short,

0 commit comments

Comments
 (0)