Fix sigevent on DragonFly.
The union which contains a void* has to be aligned at a 8-byte boundary.
This commit is contained in:
parent
75fd3a37b3
commit
0cb0a3a7dd
@ -74,11 +74,15 @@ s! {
|
||||
|
||||
pub struct sigevent {
|
||||
pub sigev_notify: ::c_int,
|
||||
pub sigev_signo: ::c_int, //actually a union
|
||||
// The union is 8-byte in size, so it is aligned at a 8-byte offset.
|
||||
#[cfg(target_pointer_width = "64")]
|
||||
__unused1: ::c_int,
|
||||
pub sigev_signo: ::c_int, //actually a union
|
||||
// pad the union
|
||||
#[cfg(target_pointer_width = "64")]
|
||||
__unused2: ::c_int,
|
||||
pub sigev_value: ::sigval,
|
||||
__unused2: *mut ::c_void //actually a function pointer
|
||||
__unused3: *mut ::c_void //actually a function pointer
|
||||
}
|
||||
|
||||
pub struct statvfs {
|
||||
|
Loading…
x
Reference in New Issue
Block a user