From 687a756bf9b443ae53aa6dc3ee8f4a1550a09597 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sat, 15 Jun 2024 22:20:20 +0200 Subject: std: make all dirent structs extern Using structs with unspecified layout on the ABI boundry can't end well. --- lib/std/c/emscripten.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/std/c/emscripten.zig') diff --git a/lib/std/c/emscripten.zig b/lib/std/c/emscripten.zig index 501fcb4386..0893289b14 100644 --- a/lib/std/c/emscripten.zig +++ b/lib/std/c/emscripten.zig @@ -171,7 +171,7 @@ pub const RTLD = struct { pub const LOCAL = 0; }; -pub const dirent = struct { +pub const dirent = extern struct { ino: c_uint, off: c_uint, reclen: c_ushort, -- cgit v1.2.3