1
Fork 0

Change trailing prctl arguments to c_ulong

This commit is contained in:
Ben Kimock 2022-04-06 17:11:50 -04:00
parent 34bcc8e8ff
commit e8a6f53af8

View file

@ -122,7 +122,13 @@ impl Thread {
// pthread wrapper only appeared in glibc 2.12, so we use syscall
// directly.
unsafe {
libc::prctl(PR_SET_NAME, name.as_ptr(), 0, 0, 0);
libc::prctl(
PR_SET_NAME,
name.as_ptr(),
0 as libc::c_ulong,
0 as libc::c_ulong,
0 as libc::c_ulong,
);
}
}