From 61aa6324af982b635f8c392640a4e8e450c4c6b4 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 18 Nov 2012 19:31:58 -0500 Subject: add port io functions to sys/io.h based on proposal by Isaac Dunham. nonexistance of bits/io.h will cause inclusion of sys/io.h to produce an error on archs that are not supposed to have it. this is probably the desired behavior, but the error message may be a bit unusual. --- src/linux/ioperm.c | 3 ++- src/linux/iopl.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/linux/ioperm.c b/src/linux/ioperm.c index 6d7c37d0..08c6d8b8 100644 --- a/src/linux/ioperm.c +++ b/src/linux/ioperm.c @@ -1,7 +1,8 @@ -#include #include "syscall.h" #ifdef SYS_ioperm +#include + int ioperm(unsigned long from, unsigned long num, int turn_on) { return syscall(SYS_ioperm, from, num, turn_on); diff --git a/src/linux/iopl.c b/src/linux/iopl.c index 5a626e16..835d3d4e 100644 --- a/src/linux/iopl.c +++ b/src/linux/iopl.c @@ -1,7 +1,8 @@ -#include #include "syscall.h" #ifdef SYS_iopl +#include + int iopl(int level) { return syscall(SYS_iopl, level); -- cgit v1.2.1