Skip to content

Commit efee86d

Browse files
committed
Auto merge of #42398 - redox-os:master, r=sfackler
Redox: Switch to repr(C) for syscall structs
2 parents 8f66faf + f3286fd commit efee86d

File tree

1 file changed

+3
-3
lines changed
  • src/libstd/sys/redox/syscall

1 file changed

+3
-3
lines changed

src/libstd/sys/redox/syscall/data.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use core::ops::{Deref, DerefMut};
1212
use core::{mem, slice};
1313

1414
#[derive(Copy, Clone, Debug, Default)]
15-
#[repr(packed)]
15+
#[repr(C)]
1616
pub struct Stat {
1717
pub st_dev: u64,
1818
pub st_ino: u64,
@@ -51,7 +51,7 @@ impl DerefMut for Stat {
5151
}
5252

5353
#[derive(Copy, Clone, Debug, Default)]
54-
#[repr(packed)]
54+
#[repr(C)]
5555
pub struct StatVfs {
5656
pub f_bsize: u32,
5757
pub f_blocks: u64,
@@ -79,7 +79,7 @@ impl DerefMut for StatVfs {
7979
}
8080

8181
#[derive(Copy, Clone, Debug, Default)]
82-
#[repr(packed)]
82+
#[repr(C)]
8383
pub struct TimeSpec {
8484
pub tv_sec: i64,
8585
pub tv_nsec: i32,

0 commit comments

Comments
 (0)