sys/io.h only in linux x86_64

Make changes to reflect this
This commit is contained in:
Andrew Salmon 2017-06-07 19:27:14 -07:00
parent c98b9f7d4e
commit 553c5dc877
3 changed files with 6 additions and 4 deletions

View file

@ -180,6 +180,9 @@ fn main() {
cfg.header("sys/fsuid.h");
cfg.header("pty.h");
cfg.header("shadow.h");
if x86_64 {
cfg.header("sys/io.h");
}
}
if linux || android {
@ -195,7 +198,6 @@ fn main() {
cfg.header("sys/syscall.h");
cfg.header("sys/personality.h");
cfg.header("sys/swap.h");
cfg.header("sys/io.h");
if !uclibc {
cfg.header("sys/sysinfo.h");
}

View file

@ -512,4 +512,7 @@ extern {
argc: ::c_int, ...);
pub fn swapcontext(uocp: *mut ucontext_t,
ucp: *const ucontext_t) -> ::c_int;
pub fn iopl(level: ::c_int) -> ::c_int;
pub fn ioperm(from: ::c_ulong, num: ::c_ulong,
turn_on: ::c_int) -> ::c_int;
}

View file

@ -999,9 +999,6 @@ extern {
pub fn swapoff(puath: *const ::c_char) -> ::c_int;
pub fn getdomainname(name: *mut ::c_char, len: ::size_t) -> ::c_int;
pub fn setdomainname(name: *const ::c_char, len: ::size_t) -> ::c_int;
pub fn iopl(level: ::c_int) -> ::c_int;
pub fn ioperm(from: ::c_ulong, num: ::c_ulong,
turn_on: ::c_int) -> ::c_int;
pub fn acct(filename: *const ::c_char) -> ::c_int;
pub fn brk(addr: *mut ::c_void) -> ::c_int;
pub fn sbrk(increment: ::intptr_t) -> *mut ::c_void;