chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / debian / patches / arm / local-ioperm.diff
1 # DP: Description: fix ioperm build error on arm
2
3 ---
4  ports/sysdeps/unix/sysv/linux/arm/ioperm.c |   10 ++--------
5  1 file changed, 2 insertions(+), 8 deletions(-)
6
7 --- a/ports/sysdeps/unix/sysv/linux/arm/ioperm.c
8 +++ b/ports/sysdeps/unix/sysv/linux/arm/ioperm.c
9 @@ -95,19 +95,13 @@
10   *    values.
11   */
12  
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
17 -#endif
18 -
19  static int
20  init_iosys (void)
21  {
22    char systype[256];
23    int i, n;
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);
29  
30    if (! __sysctl (iobase_name, 3, &io.io_base, &len, NULL, 0)