| author | |
| committer | |
| log | 687a756bf9b443ae53aa6dc3ee8f4a1550a09597 |
| tree | 2bc99d8c9c5be770e39d5ac6229f372691338ccf |
| parent | 254a3ba9d963bd031d1e536d0da1ad0621121db2 |
| signature |
Using structs with unspecified layout on the ABI boundry can't end well.2 files changed, 3 insertions(+), 3 deletions(-)
lib/std/c/emscripten.zig+1-1| ... | ... | @@ -171,7 +171,7 @@ pub const RTLD = struct { |
| 171 | 171 | pub const LOCAL = 0; |
| 172 | 172 | }; |
| 173 | 173 | |
| 174 | pub const dirent = struct { | |
| 174 | pub const dirent = extern struct { | |
| 175 | 175 | ino: c_uint, |
| 176 | 176 | off: c_uint, |
| 177 | 177 | reclen: c_ushort, |
lib/std/c/linux.zig+2-2| ... | ... | @@ -330,14 +330,14 @@ pub const RTLD = struct { |
| 330 | 330 | pub const LOCAL = 0; |
| 331 | 331 | }; |
| 332 | 332 | |
| 333 | pub const dirent = struct { | |
| 333 | pub const dirent = extern struct { | |
| 334 | 334 | ino: c_uint, |
| 335 | 335 | off: c_uint, |
| 336 | 336 | reclen: c_ushort, |
| 337 | 337 | type: u8, |
| 338 | 338 | name: [256]u8, |
| 339 | 339 | }; |
| 340 | pub const dirent64 = struct { | |
| 340 | pub const dirent64 = extern struct { | |
| 341 | 341 | ino: c_ulong, |
| 342 | 342 | off: c_ulong, |
| 343 | 343 | reclen: c_ushort, |