1 # DP: Description: fix ioperm build error on arm
4 ports/sysdeps/unix/sysv/linux/arm/ioperm.c | 10 ++--------
5 1 file changed, 2 insertions(+), 8 deletions(-)
7 --- a/ports/sysdeps/unix/sysv/linux/arm/ioperm.c
8 +++ b/ports/sysdeps/unix/sysv/linux/arm/ioperm.c
13 -/* The Linux kernel headers renamed this constant between 2.5.26 and
14 - 2.5.27. It was backported to 2.4 between 2.4.22 and 2.4.23. */
15 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)
16 -# define BUS_ISA CTL_BUS_ISA
24 - static int iobase_name[] = { CTL_BUS, BUS_ISA, BUS_ISA_PORT_BASE };
25 - static int ioshift_name[] = { CTL_BUS, BUS_ISA, BUS_ISA_PORT_SHIFT };
26 + static int iobase_name[] = { CTL_BUS, CTL_BUS_ISA, BUS_ISA_PORT_BASE };
27 + static int ioshift_name[] = { CTL_BUS, CTL_BUS_ISA, BUS_ISA_PORT_SHIFT };
28 size_t len = sizeof(io.base);
30 if (! __sysctl (iobase_name, 3, &io.io_base, &len, NULL, 0)