remove getitimer and setitimer

_GNU_SOURCE works differently than other libraries and creates
function pointer issues
This commit is contained in:
Andrew Salmon 2017-05-26 12:47:53 -07:00
parent 548e4cf187
commit bc48202e14
3 changed files with 4 additions and 10 deletions

View file

@ -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");

View file

@ -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;

View file

@ -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 {