diff options
Diffstat (limited to 'dev-libs/uclibc/files/0.9.26/arm-fix-missing-syscalls.patch')
-rw-r--r-- | dev-libs/uclibc/files/0.9.26/arm-fix-missing-syscalls.patch | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/dev-libs/uclibc/files/0.9.26/arm-fix-missing-syscalls.patch b/dev-libs/uclibc/files/0.9.26/arm-fix-missing-syscalls.patch new file mode 100644 index 000000000000..79a91de3af81 --- /dev/null +++ b/dev-libs/uclibc/files/0.9.26/arm-fix-missing-syscalls.patch @@ -0,0 +1,69 @@ +diff -ur uClibc-0.9.26/libc/sysdeps/linux/arm/ioperm.c uClibc-0.9.26.fix/libc/sysdeps/linux/arm/ioperm.c +--- uClibc-0.9.26/libc/sysdeps/linux/arm/ioperm.c 2002-11-03 18:18:09.000000000 -0500 ++++ uClibc-0.9.26.fix/libc/sysdeps/linux/arm/ioperm.c 2004-05-25 22:18:30.001343000 -0400 +@@ -47,6 +47,8 @@ + #include <asm/page.h> + #include <sys/sysctl.h> + ++#include <linux/version.h> ++ + #define PATH_ARM_SYSTYPE "/etc/arm_systype" + #define PATH_CPUINFO "/proc/cpuinfo" + +@@ -100,8 +102,13 @@ + { + char systype[256]; + int i, n; ++#if LINUX_VERSION_CODE < 132119 + static int iobase_name[] = { CTL_BUS, BUS_ISA, BUS_ISA_PORT_BASE }; + static int ioshift_name[] = { CTL_BUS, BUS_ISA, BUS_ISA_PORT_SHIFT }; ++#else ++ static int iobase_name[] = { CTL_BUS, CTL_BUS_ISA, BUS_ISA_PORT_BASE }; ++ static int ioshift_name[] = { CTL_BUS, CTL_BUS_ISA, BUS_ISA_PORT_SHIFT }; ++#endif + size_t len = sizeof(io.base); + + if (! sysctl (iobase_name, 3, &io.io_base, &len, NULL, 0) +diff -ur uClibc-0.9.26/libc/sysdeps/linux/common/create_module.c uClibc-0.9.26.fix/libc/sysdeps/linux/common/create_module.c +--- uClibc-0.9.26/libc/sysdeps/linux/common/create_module.c 2003-08-27 09:17:07.000000000 -0400 ++++ uClibc-0.9.26.fix/libc/sysdeps/linux/common/create_module.c 2004-05-25 21:49:03.000000000 -0400 +@@ -26,6 +26,7 @@ + #include <sys/types.h> + #include <sys/syscall.h> + ++#ifdef __NR_create_module + + //#define __NR_create_module 127 + +@@ -65,3 +66,11 @@ + #endif + + ++ ++#else ++unsigned long create_module(const char *name, size_t size) ++{ ++ __set_errno(ENOSYS); ++ return (unsigned long)-1; ++} ++#endif +diff -ur uClibc-0.9.26/libc/sysdeps/linux/common/syscalls.c uClibc-0.9.26.fix/libc/sysdeps/linux/common/syscalls.c +--- uClibc-0.9.26/libc/sysdeps/linux/common/syscalls.c 2004-01-02 03:47:22.000000000 -0500 ++++ uClibc-0.9.26.fix/libc/sysdeps/linux/common/syscalls.c 2004-05-25 22:28:28.351343000 -0400 +@@ -1413,8 +1413,16 @@ + + //#define __NR_get_kernel_syms 130 + #ifdef L_get_kernel_syms ++#ifdef __NR_get_kernel_syms + struct kernel_sym; + _syscall1(int, get_kernel_syms, struct kernel_sym *, table); ++#else ++int get_kernel_syms(struct kernel_sym *table) ++{ ++ __set_errno(ENOSYS); ++ return (unsigned long)-1; ++} ++#endif + #endif + + //#define __NR_quotactl 131 |