File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,9 @@ fn main() {
180
180
cfg. header ( "sys/fsuid.h" ) ;
181
181
cfg. header ( "pty.h" ) ;
182
182
cfg. header ( "shadow.h" ) ;
183
+ if x86_64 {
184
+ cfg. header ( "sys/io.h" ) ;
185
+ }
183
186
}
184
187
185
188
if linux || android {
@@ -195,7 +198,6 @@ fn main() {
195
198
cfg. header ( "sys/syscall.h" ) ;
196
199
cfg. header ( "sys/personality.h" ) ;
197
200
cfg. header ( "sys/swap.h" ) ;
198
- cfg. header ( "sys/io.h" ) ;
199
201
if !uclibc {
200
202
cfg. header ( "sys/sysinfo.h" ) ;
201
203
}
Original file line number Diff line number Diff line change @@ -512,4 +512,7 @@ extern {
512
512
argc : :: c_int , ...) ;
513
513
pub fn swapcontext ( uocp : * mut ucontext_t ,
514
514
ucp : * const ucontext_t ) -> :: c_int ;
515
+ pub fn iopl ( level : :: c_int ) -> :: c_int ;
516
+ pub fn ioperm ( from : :: c_ulong , num : :: c_ulong ,
517
+ turn_on : :: c_int ) -> :: c_int ;
515
518
}
Original file line number Diff line number Diff line change @@ -999,9 +999,6 @@ extern {
999
999
pub fn swapoff ( puath : * const :: c_char ) -> :: c_int ;
1000
1000
pub fn getdomainname ( name : * mut :: c_char , len : :: size_t ) -> :: c_int ;
1001
1001
pub fn setdomainname ( name : * const :: c_char , len : :: size_t ) -> :: c_int ;
1002
- pub fn iopl ( level : :: c_int ) -> :: c_int ;
1003
- pub fn ioperm ( from : :: c_ulong , num : :: c_ulong ,
1004
- turn_on : :: c_int ) -> :: c_int ;
1005
1002
pub fn acct ( filename : * const :: c_char ) -> :: c_int ;
1006
1003
pub fn brk ( addr : * mut :: c_void ) -> :: c_int ;
1007
1004
pub fn sbrk ( increment : :: intptr_t ) -> * mut :: c_void ;
You can’t perform that action at this time.
0 commit comments