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.
10 lines
184 B
C
10 lines
184 B
C
#include "syscall.h"
|
|
|
|
#ifdef SYS_ioperm
|
|
#include <sys/io.h>
|
|
|
|
int ioperm(unsigned long from, unsigned long num, int turn_on)
|
|
{
|
|
return syscall(SYS_ioperm, from, num, turn_on);
|
|
}
|
|
#endif
|