From d980654a971e2e3b975043a6fd3d3809bebcc08a Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sun, 20 Apr 2025 16:41:52 -0700 Subject: [PATCH] move zig-errno import to the top --- mod.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod.zig b/mod.zig index 0a3a39744f2563209c2c8ddddebdb9c0a5b682d8..17d72d7013d4a5d55fe6a836b2cb976d6397a010 100644 --- a/mod.zig +++ b/mod.zig @@ -1,4 +1,5 @@ const std = @import("std"); +const errno = @import("errno"); const sys = std.os.linux; const syscall0 = sys.syscall0; const syscall1 = sys.syscall1; @@ -7,7 +8,6 @@ const syscall3 = sys.syscall3; const syscall4 = sys.syscall4; const syscall5 = sys.syscall5; const syscall6 = sys.syscall6; -const errno = @import("errno"); fn _errno(rc: usize) enum(c_ushort) { ok, _ } { const signed: isize = @bitCast(rc); -- 2.54.0