Update pthread_attr_getstacksize to fix Go CGO

This commit is contained in:
Wildan Mubarok
2025-07-20 17:01:47 +00:00
parent 648d3be78e
commit b23ac06a01
+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