Merge branch 'fix-gocgo' into 'master'

Update pthread_attr_getstacksize to fix Go CGO

See merge request redox-os/relibc!676
This commit is contained in:
Jeremy Soller
2025-07-21 07:54:37 -06:00
+1 -1
View File
@@ -103,7 +103,7 @@ pub unsafe extern "C" fn pthread_attr_getstack(
#[no_mangle]
pub unsafe extern "C" fn pthread_attr_getstacksize(
attr: *const pthread_attr_t,
stacksize: *mut c_int,
stacksize: *mut size_t,
) -> c_int {
core::ptr::write(stacksize, (*attr.cast::<RlctAttr>()).stacksize as _);
0