Browse Source

fix warnings when arch lacks get_kernel_syms syscall (like ia64)

Mike Frysinger 18 years ago
parent
commit
a9f021ba74
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libc/sysdeps/linux/common/get_kernel_syms.c

+ 2 - 2
libc/sysdeps/linux/common/get_kernel_syms.c

@@ -9,13 +9,13 @@
 
 #include "syscalls.h"
 
-#ifdef __NR_get_kernel_syms
 struct kernel_sym;
+#ifdef __NR_get_kernel_syms
 _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;
+	return -1;
 }
 #endif