sys/io.h only in linux x86_64
Make changes to reflect this
This commit is contained in:
parent
c98b9f7d4e
commit
553c5dc877
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue