| ... | @@ -99,7 +99,10 @@ pub fn syscall6( | ... | @@ -99,7 +99,10 @@ pub fn syscall6( |
| 99 | | 99 | |
| 100 | /// This matches the libc clone function. | 100 | /// This matches the libc clone function. |
| 101 | pub extern fn clone( | 101 | pub extern fn clone( |
| 102 | func: fn (arg: usize) callconv(.C) u8, | 102 | func: switch (@import("builtin").zig_backend) { |
| | 103 | .stage1 => fn (arg: usize) callconv(.C) u8, |
| | 104 | else => *const fn (arg: usize) callconv(.C) u8, |
| | 105 | }, |
| 103 | stack: usize, | 106 | stack: usize, |
| 104 | flags: u32, | 107 | flags: u32, |
| 105 | arg: usize, | 108 | arg: usize, |