1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#[allow(unused_imports)]
use libc::{c_int, c_ushort, c_void};
#[cfg(windows)]
pub type GPid = *mut c_void;
#[cfg(not(windows))]
pub type GPid = c_int;
#[repr(C)]
#[derive(Copy, Clone)]
#[cfg(all(windows, target_arch = "x86_64"))]
pub struct GPollFD {
pub fd: i64,
pub events: c_ushort,
pub revents: c_ushort,
}
#[repr(C)]
#[derive(Copy, Clone)]
#[cfg(not(all(windows, target_arch = "x86_64")))]
pub struct GPollFD {
pub fd: c_int,
pub events: c_ushort,
pub revents: c_ushort,
}