]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/uclibc/uclibc-0.9.26/26headers.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / uclibc / uclibc-0.9.26 / 26headers.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- uClibc-0.9.26/libc/sysdeps/linux/arm/ioperm.c~26headers
7 +++ uClibc-0.9.26/libc/sysdeps/linux/arm/ioperm.c
8 @@ -47,6 +47,8 @@
9  #include <asm/page.h>
10  #include <sys/sysctl.h>
11  
12 +#include <linux/version.h>
13 +
14  #define PATH_ARM_SYSTYPE       "/etc/arm_systype"
15  #define PATH_CPUINFO           "/proc/cpuinfo"
16  
17 @@ -100,8 +102,13 @@
18  {
19      char systype[256];
20      int i, n;
21 +#if LINUX_VERSION_CODE < 132119
22      static int iobase_name[] = { CTL_BUS, BUS_ISA, BUS_ISA_PORT_BASE };
23      static int ioshift_name[] = { CTL_BUS, BUS_ISA, BUS_ISA_PORT_SHIFT };
24 +#else
25 +    static int iobase_name[] = { CTL_BUS, CTL_BUS_ISA, BUS_ISA_PORT_BASE };
26 +    static int ioshift_name[] = { CTL_BUS, CTL_BUS_ISA, BUS_ISA_PORT_SHIFT };
27 +#endif
28      size_t len = sizeof(io.base);
29  
30      if (! sysctl (iobase_name, 3, &io.io_base, &len, NULL, 0)