zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 413b789e06bfc98bd285f0a340bd537b1d2c9dec (tree)
parent 496eb69273d363f21ca3923f00714b229882e42a
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Thu,  5 May 2022 11:32:53 -0700

std.os.linux.arm-eabi: upgrade to new fn ptr semantics

Diffstat:
Mlib/std/os/linux/arm-eabi.zig | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/std/os/linux/arm-eabi.zig b/lib/std/os/linux/arm-eabi.zig @@ -99,7 +99,10 @@ pub fn syscall6( /// This matches the libc clone function. pub extern fn clone( - func: fn (arg: usize) callconv(.C) u8, + func: switch (@import("builtin").zig_backend) { + .stage1 => fn (arg: usize) callconv(.C) u8, + else => *const fn (arg: usize) callconv(.C) u8, + }, stack: usize, flags: u32, arg: usize,