Explorar el Código

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

Eric Andersen hace 21 años
padre
commit
6fdaa0d8cd
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  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