std: fix inconsistent errno size on linux

Now it's always u16
This commit is contained in:
Andrew Kelley committed 2024-03-20 00:36:41 -07:00
1 parent 3a836b4800
commit 5d389535e8
1 file changed
+2 -2
+2 -2
View File
@@ -2264,7 +2264,7 @@ pub fn map_shadow_stack(addr: u64, size: u64, flags: u32) usize {
}
pub const E = switch (native_arch) {
.mips, .mipsel => enum(i32) {
.mips, .mipsel => enum(u16) {
/// No error occurred.
SUCCESS = 0,
@@ -2406,7 +2406,7 @@ pub const E = switch (native_arch) {
pub const init = errnoFromSyscall;
},
.sparc, .sparcel, .sparc64 => enum(i32) {
.sparc, .sparcel, .sparc64 => enum(u16) {
/// No error occurred.
SUCCESS = 0,