Commit 413b789e06

Andrew Kelley <andrew@ziglang.org>
2022-05-05 20:32:53
std.os.linux.arm-eabi: upgrade to new fn ptr semantics
1 parent 496eb69
Changed files (1)
lib
std
os
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,