Skip to content

Commit b1e081e

Browse files
sdroegebilelmoussaoui
authored andcommitted
glib-sys: Map glib_sys::GPid directly to libc::pid_t
Otherwise this can cause ABI problems.
1 parent b07bf88 commit b1e081e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glib/sys/src/manual.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub struct passwd {
2323
pub type GPid = *mut c_void;
2424

2525
#[cfg(not(windows))]
26-
pub type GPid = c_int;
26+
pub type GPid = libc::pid_t;
2727

2828
#[repr(C)]
2929
#[derive(Copy, Clone)]

0 commit comments

Comments
 (0)