Ver Fonte

Cope when the __NR_get_kernel_syms is undefined (i.e. 2.6.x arm-linux)

Eric Andersen há 21 anos atrás
pai
commit
6fdaa0d8cd
1 ficheiros alterados com 9 adições e 0 exclusões
  1. 9 0
      libc/sysdeps/linux/common/get_kernel_syms.c

+ 9 - 0
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