From 6fdaa0d8cdbeb16d7ddbbbce4de6d10f41d2128e Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 15 May 2004 08:21:58 +0000 Subject: Cope when the __NR_get_kernel_syms is undefined (i.e. 2.6.x arm-linux) --- libc/sysdeps/linux/common/get_kernel_syms.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libc') diff --git a/libc/sysdeps/linux/common/get_kernel_syms.c b/libc/sysdeps/linux/common/get_kernel_syms.c index 190f87d22..c29af5519 100644 --- a/libc/sysdeps/linux/common/get_kernel_syms.c +++ b/libc/sysdeps/linux/common/get_kernel_syms.c @@ -8,5 +8,14 @@ */ #include "syscalls.h" + +#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 -- cgit v1.2.3