diff options
-rw-r--r-- | libc/sysdeps/linux/common/get_kernel_syms.c | 9 |
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 |