X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-powerpc%2Funistd.h;h=4b5f5e1cd7a2028c1bd6f8bb4a0642368e8c515d;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=b8faee752dd35c53d1b24efc2137a3f6bd329024;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/include/asm-powerpc/unistd.h b/include/asm-powerpc/unistd.h index b8faee752..4b5f5e1cd 100644 --- a/include/asm-powerpc/unistd.h +++ b/include/asm-powerpc/unistd.h @@ -324,12 +324,12 @@ #define __NR_get_robust_list 299 #define __NR_set_robust_list 300 -#ifdef __KERNEL__ - #define __NR_syscalls 301 +#ifdef __KERNEL__ #define __NR__exit __NR_exit #define NR_syscalls __NR_syscalls +#endif #ifndef __ASSEMBLY__ @@ -441,7 +441,9 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5, type6 arg6 __syscall_nr(6, type, name, arg1, arg2, arg3, arg4, arg5, arg6); \ } +#ifdef __KERNEL__ +#include #include #include #include @@ -497,8 +499,8 @@ extern int execve(const char *file, char **argv, char **envp); #define cond_syscall(x) asm(".weak\t." #x "\n\t.set\t." #x ",.sys_ni_syscall") #endif +#endif /* __KERNEL__ */ #endif /* __ASSEMBLY__ */ -#endif /* __KERNEL__ */ #endif /* _ASM_PPC_UNISTD_H_ */