remove getitimer and setitimer
_GNU_SOURCE works differently than other libraries and creates function pointer issues
This commit is contained in:
parent
548e4cf187
commit
bc48202e14
@ -173,6 +173,7 @@ fn main() {
|
||||
cfg.header("sys/xattr.h");
|
||||
}
|
||||
cfg.header("sys/ipc.h");
|
||||
cfg.header("sys/sem.h");
|
||||
cfg.header("sys/msg.h");
|
||||
cfg.header("sys/shm.h");
|
||||
cfg.header("sys/fsuid.h");
|
||||
|
@ -570,12 +570,6 @@ extern {
|
||||
|
||||
pub fn flock(fd: ::c_int, operation: ::c_int) -> ::c_int;
|
||||
|
||||
#[cfg_attr(target_os = "netbsd", link_name = "__getitimer50")]
|
||||
pub fn getitimer(which: ::c_int, curr_value: *mut ::itimerval) -> ::c_int;
|
||||
#[cfg_attr(target_os = "netbsd", link_name = "__setitimer50")]
|
||||
pub fn setitimer(which: ::c_int,
|
||||
new_value: *::itimerval,
|
||||
old_value: *::itimerval) -> ::c_int;
|
||||
#[cfg_attr(target_os = "netbsd", link_name = "__gettimeofday50")]
|
||||
pub fn gettimeofday(tp: *mut ::timeval,
|
||||
tz: *mut ::c_void) -> ::c_int;
|
||||
|
@ -227,10 +227,9 @@ s! {
|
||||
}
|
||||
|
||||
pub struct sembuf {
|
||||
pub semval: ::c_ushort,
|
||||
pub semzcnt: ::c_ushort,
|
||||
pub semncnt: ::c_ushort,
|
||||
pub sempid: ::pid_t,
|
||||
pub sem_num: ::c_ushort,
|
||||
pub sem_op: ::c_short,
|
||||
pub semn_flg: ::c_short,
|
||||
}
|
||||
|
||||
pub struct semid_ds {
|
||||
|
Loading…
Reference in New Issue
Block a user