Skip to content

Commit e359449

Browse files
committed
Enable syscalls on s390x
1 parent 38d0e55 commit e359449

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/sys/syscall.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ mod arch {
6464
pub static MEMFD_CREATE: Syscall = 360;
6565
}
6666

67+
#[cfg(target_arch = "s390x")]
68+
mod arch {
69+
use libc::c_long;
70+
71+
pub type Syscall = c_long;
72+
73+
pub static SYSPIVOTROOT: Syscall = 217;
74+
pub static MEMFD_CREATE: Syscall = 350;
75+
}
76+
6777
extern {
6878
pub fn syscall(num: Syscall, ...) -> c_int;
6979
}

0 commit comments

Comments
 (0)