summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-05-15 08:21:58 +0000
committerEric Andersen <andersen@codepoet.org>2004-05-15 08:21:58 +0000
commit6fdaa0d8cdbeb16d7ddbbbce4de6d10f41d2128e (patch)
tree2a8ec10154139aa9b519891c34c48bb3fd4d2540 /libc/sysdeps/linux/common
parent9a3afd08042784e294b111f58a46af3848893f7c (diff)
Cope when the __NR_get_kernel_syms is undefined (i.e. 2.6.x arm-linux)
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/get_kernel_syms.c9
1 files changed, 9 insertions, 0 deletions
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